Page MenuHomePhorge

Localization with vue-i18n
ClosedPublic

Authored by machniak on Mar 22 2021, 1:59 PM.
Tags
None
Referenced Files
F11585013: D2395.id6895.diff
Thu, Mar 28, 10:24 AM
Unknown Object (File)
Sun, Mar 24, 6:28 PM
Unknown Object (File)
Mon, Mar 18, 3:19 AM
Unknown Object (File)
Thu, Mar 7, 9:14 AM
Unknown Object (File)
Feb 25 2024, 4:44 PM
Unknown Object (File)
Feb 22 2024, 9:53 PM
Unknown Object (File)
Feb 18 2024, 5:58 AM
Unknown Object (File)
Feb 14 2024, 9:11 AM
Subscribers
Restricted Project

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
Branch
dev/localization
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 33934
Build 13474: arc lint + arc unit

Event Timeline

machniak created this revision.
  • Upgrade to laravel-mix v6 (webpack v5) and other js dependencies
  • Don't preload English
  • Localization engine for theme files
  • Upgrade to laravel-mix v6 (webpack v5) and other js dependencies
  • Don't preload English
  • Localization engine for theme files
  • Rebase
  • Improve language selector
  • Hide the lang selector if there's only a single language available
  • Manu localization
  • FAQ localization
  • Rebase
  • Improve language selector
  • Store UI localization in php file
  • Remove unused Laravel localization files
  • Store user language in a cookie, always load English
  • Small code cleanup
  • Update tests
  • Small linting fixes
  • Browser test for the language selector
  • 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)
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.