Page MenuHomekolab.org

Localization with vue-i18n
ClosedPublic

Authored by machniak on Mar 22 2021, 1:59 PM.

Details

Reviewers
mollekopf
Group Reviewers
Restricted Project
Commits
rK18a7cd7dbd77: Localization with vue-i18n
Summary

vue-i18n is the most robust and most used solution. It adds ~30KB to the minified js file size. Quite a lot, but all other solutions I saw look very weak in comparison to vue-i18n.

  • UI (vue) localization engine
  • Theme files localization engine
  • Language selector in UI
  • Passing selected language to API calls, and setting the laravel locale accordingly
  • Browser (preferred) language auto-detection
  • Localization of theme-specific menu and faq items

Diff Detail

Repository
rK kolab
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

machniak requested review of this revision.Mar 22 2021, 1:59 PM
machniak created this revision.
machniak updated this revision to Diff 6727.Mar 23 2021, 2:24 PM
  • Upgrade to laravel-mix v6 (webpack v5) and other js dependencies
  • Don't preload English
machniak edited the summary of this revision. (Show Details)Mar 23 2021, 2:26 PM
machniak updated this revision to Diff 6733.Mar 23 2021, 3:40 PM
  • Localization engine for theme files
machniak edited the summary of this revision. (Show Details)Mar 23 2021, 3:43 PM
machniak edited the summary of this revision. (Show Details)Mar 23 2021, 3:46 PM
machniak updated this revision to Diff 6889.Apr 15 2021, 3:28 PM
  • Upgrade to laravel-mix v6 (webpack v5) and other js dependencies
  • Don't preload English
  • Localization engine for theme files
  • Rebase
  • Improve language selector
machniak updated this revision to Diff 6895.Apr 16 2021, 9:27 AM
  • Hide the lang selector if there's only a single language available
machniak updated this revision to Diff 6901.Apr 16 2021, 1:06 PM
  • Manu localization
  • FAQ localization
machniak edited the summary of this revision. (Show Details)Apr 16 2021, 1:17 PM
machniak updated this revision to Diff 6973.Apr 23 2021, 2:46 PM
  • Rebase
  • Improve language selector
  • Store UI localization in php file
  • Remove unused Laravel localization files
machniak updated this revision to Diff 6979.Apr 26 2021, 2:22 PM
  • Store user language in a cookie, always load English
  • Small code cleanup
  • Update tests
  • Small linting fixes
  • Browser test for the language selector
machniak updated this revision to Diff 6985.Apr 26 2021, 3:13 PM
  • Small css improvements to the page menu
machniak retitled this revision from [WIP] Localization with vue-i18n to Localization with vue-i18n.Apr 27 2021, 9:41 AM
machniak edited the summary of this revision. (Show Details)
mollekopf accepted this revision.May 6 2021, 3:44 PM
This revision is now accepted and ready to land.May 6 2021, 3:44 PM
This revision was automatically updated to reflect the committed changes.