Page MenuHomekolab.org

[WIP] Localization with vue-i18n
Needs ReviewPublic

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

Details

Reviewers
None
Group Reviewers
Restricted Project
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
  • Store user language in database, we need it if we wanted to localize e.g. mail messages we send to the user (only if the user locale is different than the system locale)
  • Reload theme specific page content/faq on language change
  • Move hardcoded UI strings into localization files

Diff Detail

Repository
rK kolab
Branch
dev/localization
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 33934
Build 13474: arc lint + arc unit

Event Timeline

machniak requested review of this revision.Mon, Mar 22, 1:59 PM
machniak created this revision.
machniak updated this revision to Diff 6727.Tue, Mar 23, 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)Tue, Mar 23, 2:26 PM
machniak updated this revision to Diff 6733.Tue, Mar 23, 3:40 PM
  • Localization engine for theme files
machniak edited the summary of this revision. (Show Details)Tue, Mar 23, 3:43 PM
machniak edited the summary of this revision. (Show Details)Tue, Mar 23, 3:46 PM
machniak updated this revision to Diff 6889.Thu, Apr 15, 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.Fri, Apr 16, 9:27 AM
  • Hide the lang selector if there's only a single language available
machniak updated this revision to Diff 6901.Fri, Apr 16, 1:06 PM
  • Manu localization
  • FAQ localization
machniak edited the summary of this revision. (Show Details)Fri, Apr 16, 1:17 PM