Skip to content

Context API #6

@virolea

Description

@virolea

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.

Metadata

Metadata

Assignees

Labels

featureNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions