diff options
author | axiand <axiand@proton.me> | 2024-11-19 21:24:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-19 12:24:18 -0800 |
commit | f882cf97374bd85beba03fcedfc9789019b50e83 (patch) | |
tree | 178f27e170a2408286e49686fd90ae511f42d5a3 /src/locale/i18n.ts | |
parent | c0c8a192cec4a5257c462a75e9074ee38a707a2d (diff) | |
download | voidsky-f882cf97374bd85beba03fcedfc9789019b50e83.tar.zst |
Implement Polish translation (#6283)
* Initial polish translation sweep * rewrite feeds page flavor text * bring up to date with dev branch, revisit some strings * redoing some more... * bring up to date * rm dead strings, try out a different phrasing for threaded mode str prev translation was nonsensical - we're already calling threads "wÄ…tki". let's try "recursive tree" instead to describe what threaded mode does * tweaks here and there * more tweaks. sign translation file TL note: trying a new space-saving translation for send via direct message, old one made the context menu stretch * space-saving translations for profile tabs * up to date * tl latest changes * some small fixes * few more tweaks around profile editing strings * i dislike gendered languages * yet more tweaks * Update dates.ts * Review suggestions (1) * tiny fixes * Review suggestions (2) * Review suggestions (3) * Review suggestions (4) * "Anuluj wyciszenie" * A few new strings * Remove dead strings again * Review suggestions (5) * te -> to --------- Co-authored-by: Frudrax Cheng <i@cynosura.one>
Diffstat (limited to 'src/locale/i18n.ts')
-rw-r--r-- | src/locale/i18n.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/locale/i18n.ts b/src/locale/i18n.ts index b9f69784c..7a841f383 100644 --- a/src/locale/i18n.ts +++ b/src/locale/i18n.ts @@ -25,6 +25,7 @@ import {messages as messagesId} from '#/locale/locales/id/messages' import {messages as messagesIt} from '#/locale/locales/it/messages' import {messages as messagesJa} from '#/locale/locales/ja/messages' import {messages as messagesKo} from '#/locale/locales/ko/messages' +import {messages as messagesPl} from '#/locale/locales/pl/messages' import {messages as messagesPt_BR} from '#/locale/locales/pt-BR/messages' import {messages as messagesRu} from '#/locale/locales/ru/messages' import {messages as messagesTh} from '#/locale/locales/th/messages' @@ -144,6 +145,14 @@ export async function dynamicActivate(locale: AppLanguage) { ]) break } + case AppLanguage.pl: { + i18n.loadAndActivate({locale, messages: messagesPl}) + await Promise.all([ + import('@formatjs/intl-pluralrules/locale-data/pl'), + import('@formatjs/intl-numberformat/locale-data/pl'), + ]) + break + } case AppLanguage.pt_BR: { i18n.loadAndActivate({locale, messages: messagesPt_BR}) await Promise.all([ |