vue-monorepo-boilerplate icon indicating copy to clipboard operation
vue-monorepo-boilerplate copied to clipboard

i118n - how to deal with it across multiple projects

Open EvanBurbidge opened this issue 6 years ago • 2 comments

In the majority of projects i've seen translations are handled from a single .json, yml file etc etc, how would you handle a global messages / translations object in a project like this?

EvanBurbidge avatar Oct 02 '18 14:10 EvanBurbidge

From the top of my head, I would place localization file into the common package - this way it can be used across all modules - frontend, backend ...

sv2 avatar Oct 03 '18 04:10 sv2

Suppose that would work, one more quick question if you don't mind, why don't you precompile each fe package e.g. each package is a vue cli app and your main app imports the dist of that app?

EvanBurbidge avatar Oct 03 '18 08:10 EvanBurbidge