Reputation: 1051
I'm using i18n-node to translate a multilingual express web-app. The i18n-node package allows you to specify a single folder for all of the locale json files which contain all the strings in the UI of the app. Assuming the app is getting bigger & bigger, It would've been ideal to be able to divide the long monolithic language locale json which holds ALL of the app strings into separate files, each will reside in its custom module folder. Is there a way to specify multiple locale folders/files? Cheers Ajar
Upvotes: 2
Views: 1056
Reputation: 21
For this purpose exists i18next package which supports namespaces. But from my experience if you're looking for namespaces only - there are not so many profits in it. Because in the end of application bootstrapping all the namespaces will be loaded into memory. The question is - do you want better editing feelings using namespaces?
Btw, i18next has many other benefits, if you need them. For today my choice is old simple i18n.
Upvotes: 2