Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Context API #6

Open
virolea opened this issue Sep 19, 2024 · 0 comments
Open

Context API #6

virolea opened this issue Sep 19, 2024 · 0 comments
Assignees
Labels
feature New feature or request

Comments

@virolea
Copy link
Owner

virolea commented Sep 19, 2024

Words can mean different things depending on their context.

For instance, file can both be a noun and a verb in english. However they translate differently in French:

  • File (verb): ranger, classer
  • File (noun): fichier

I can see an API loooking like:

Rosetta.translate("File", locale: :fr, context: "Verb")
# =>  Classer

And having a dedicated key linked to the main translation key.

@virolea virolea added the feature New feature or request label Sep 19, 2024
@virolea virolea self-assigned this Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant