Commit Graph

22 Commits (3181c076b25421fc10c21145d31e60007d6e5d0f)

Author SHA1 Message Date
Steven d95a6ce898 chore: add ar locale item 2 years ago
boojack d114b630d2
feat: add prettier sort import plugin (#2058) 2 years ago
Ajay Kumbhare 55975a46d8
feat: add hindi language translation for i18n support (#2001) 2 years ago
May Kittens Devour Your Soul 8f7001cd9f
feat: add croatian locale (#1822)
* Create hr.json

Croatian Language

* Update user_setting.go

* Update i18n.ts

* Update hr.json

* Update web/src/i18n.ts

---------

Co-authored-by: boojack <stevenlgtm@gmail.com>
2 years ago
kakik0u c396cc9649
feat: add japanese locale (#1802)
* Add japanese

* Add japanese setting files

---------

Co-authored-by: barappe <121844712+barappe@users.noreply.github.com>
2 years ago
boojack ef02519e72
chore: regenerate yarn lock file (#1530) 2 years ago
Lincoln Nogueira 557278fac0
feat: improve i18n support as a whole (#1526)
* feat: improve i18n support as a whole

- Remove dayjs in favor of /helpers/datetime.ts, which uses
Intl.DateTimeFormat and Date. Dayjs is not exactly i18n friendly
and has several locale related opened issues.

- Move/refactor date/time code from /helpers/utils.ts to
/helpers/datetime.ts.

- Fix Daily Review weekday not changing according to selected date.

- Localize Daily review weekday and month.

- Load i18n listed strings from /locales/{locale}.json in a dynamic way.
This makes much easier to add new locales, by just adding a properly
named json file and listing it only in /web/src/i18n.ts and
/api/user_setting.go.

- Fallback languages are now set in /web/src/i18n.ts.

- Full language codes are now preffered, but they fallback to 2-letter
codes when not available.

- The locale dropdown is now populated dynamically from the available
locales. Locale names are populated by the browser via
Intl.DisplayNames(locale).

- /web/src/i18n.ts now exports a type TLocale from availableLocales
array. This is used only by findNearestLanguageMatch(). As I was unable
to use this type in ".d.ts" files, I switched the Locale type from
/web/src/types/i18n.d.ts to string.

- Move pretty much all hardcoded text strings to i18n strings.

- Add pt-BR translation.

- Remove site.ts and move its content to a i18n string.

- Rename zh.json to zh-Hans.json to get the correct language name on
selector dropdown.

- Remove pt_BR.json and replace with pt-BR.json.

- Some minor layout spacing fixes to accommodate larger texts.

- Improve some error messages.

* Delete .yarnrc.yml

* Delete package-lock.json

* fix: 158:28  error  Insert `⏎`  prettier/prettier
2 years ago
boojack 0cddb358c1
chore: add Slovenian locale (#1437)
chore: add sl locale
2 years ago
CorrectRoadH ddf1eb0219
feat: automatically change language on first launch (#1278)
* feat: automatically change language to browser language on first launch(#1238)

* Update web/src/store/module/global.ts

* chroe: rename languageCodeCovert to convertLanguageCodeToLocale

---------

Co-authored-by: boojack <stevenlgtm@gmail.com>
2 years ago
Mehmet Altuğ Akgül e062c9b4a7
feat: add Turkish Translation file (#1202)
* Created tr.json for Turkish Translation

* updated file for trLocale

* Updated for Turkish Locale

* Update i18n.ts

* Update i18n.ts

* Update package.json

* Update package.json

* Update i18n.d.ts

* Update user_setting.go

* Update package.json

* Update web/src/components/LocaleSelect.tsx

Co-authored-by: boojack <stevenlgtm@gmail.com>

* Update package.json

* Update LocaleSelect.tsx

* Update LocaleSelect.tsx

* Update i18n.ts

* Update i18n.ts

---------

Co-authored-by: boojack <stevenlgtm@gmail.com>
2 years ago
_Jellen 29b5c393d1
feat: add Korean translation (#1127)
added Korean translation
2 years ago
boojack d29c40dc71
chore: update router loader (#1102) 2 years ago
WY-WY-W 930b54fabd
feat: update Traditional Chinese translation (#994) 2 years ago
Vincenzo Cardone 2e95f6824f
feat: add Italian Translation (#890) 2 years ago
Ivan 65e9fdead1
feat: add russian locale (#879) 2 years ago
Taras c160bed403
fead: add ukrainian locale (#864) 2 years ago
PublicHer0 5520605ccc
feat: add spanish locale (#741) 2 years ago
Jasper Platenburg 79bf365d78
Dutch locale (#687) 2 years ago
Maurice Bauer 492a1370ab
feat: add German i18n item (#686) 2 years ago
Andreas Backström 53cf6ebb79
feat: add swedish/svenska translation (#668)
Add swedish / svenska translation
3 years ago
boojack a0b35f7aa9
feat: add French i18n item (#547)
feat: add French i18n
3 years ago
Steven 366afdd1e4 feat: use `i18next` 3 years ago