ever-traduora icon indicating copy to clipboard operation
ever-traduora copied to clipboard

[Feature] Namespace support

Open felixmosh opened this issue 3 years ago • 1 comments

Is your feature request related to a problem? Please describe. In i18next lib there is a concept of namespaces, this is kind a "group" of translations by domain for the same language.

This means that each language divided into namespaces (which each namespace is a json file).

Describe the solution you'd like Add a new concept of "namespaces" which will allow to upload a file into a specific namespace. It can be a new flag in a project which defines if the project is uses namespaces or not.

Additional context https://www.i18next.com/principles/namespaces

felixmosh avatar Oct 30 '20 10:10 felixmosh

Namespaces are basically separate files per language instead of a single file per language.

Traduora will export en_US as en_US.json, but when writing a i18next project we may have main.json, headers.json, and many other files representing different namespaces.

Right now, trying to import more than one file per language overwrites the previously imported language's terms.

Adding support for multiple files is pretty important for those of us using i18next and not wanting to use single huge files per language.

Here's an example of how an i18next project may be laid out. image

Clearmist avatar Feb 01 '24 21:02 Clearmist