vocdoni / ui-components

Vocdoni UI components libs
GNU General Public License v3.0
3 stars 2 forks source link

Change how the useTranslate takes translations #36

Closed elboletaire closed 1 year ago

elboletaire commented 1 year ago

The translations component should completely ignore languages and default languages, and just care about the final translated strings. The current implementation is forcing developers to add a key for each language and, using systems like i18next, that's not possible, since it's handling that on its own.

The solution is to just get rid of everything related to the language and default language, and ensure the logic only searches for the strings without the language level.