ever-co / ever-demand

Everยฎ Demandโ„ข - Open Commerce Platform - https://everdemand.co
https://everdemand.co
GNU Affero General Public License v3.0
1.71k stars 458 forks source link

feat: improvement of language accessibility for the translation using the mono-repo power #1458

Open Neosoulink opened 2 years ago

Neosoulink commented 2 years ago

Structure improvement

๐Ÿ”Ž Search Terms

๐Ÿค” Actual behavior

Currently, packages use their own language files for translation. These files contain the same information from one package to another, it creates a kind of redundancy and it is difficult to maintain or update

๐Ÿ™‚ Expected behavior

It will really be interesting to be able to use the internal mono-repo package containing all the languages โ€‹โ€‹that we can import in the different packages/apps of mono-repo as dependence

e.g:

...
โ”œโ”€โ”€ packages
|   ...
โ”‚   โ”œโ”€โ”€ @ever-platform-tranlation // contains json data of languages (maybe other useful helpers)
โ”‚   ...
โ”‚   โ”œโ”€โ”€ shop-mobile-ionic  // import @ever-platform-tranlation as dependecy
โ”‚   โ””โ”€โ”€ shop-web-angular  // import @ever-platform-tranlation as dependecy
...