optimize some implementation, including paths of components and so on
@BBeretta Hello, my friend. I have reviewed the MR !372 (merged) and was impressed with the well-organized code, great job! What's more, after reviewing the MR, some ideas which could make the MR better come outs from my head. So i create this MR to add some optimizations to your branch, including:
- Moving the new component(LanguageContext, LanguageSelector, etc.) and translation files(
/src/Translation
) undersrc/ui
path, which could be more well-organized; - Renaming some component, like
LanguageContext
->I18NContext
, which could be more concise; - Changing the styles of
LanguageSelector
, which could be more coordinated; - Fixing some names of keys in translations.
It depends on you whether this MR is merged, and if it's done, we can merge MR !372 (merged) without fixing anything.
Best wishes for you!