Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i18n Ukrainian language support 🇺🇦 #112

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/lib/i18n/i18n-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export type Locales =
| 'es'
| 'it'
| 'ru'
| 'ua'
| 'uk'

export type Translation = RootTranslation
Expand Down
1 change: 1 addition & 0 deletions src/lib/i18n/i18n-util.async.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const localeTranslationLoaders = {
es: () => import('./es'),
it: () => import('./it'),
ru: () => import('./ru'),
ua: () => import('./ua'),
uk: () => import('./uk'),
}

Expand Down
2 changes: 2 additions & 0 deletions src/lib/i18n/i18n-util.sync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import en from './en'
import es from './es'
import it from './it'
import ru from './ru'
import ua from './ua'
import uk from './uk'

const localeTranslations = {
Expand All @@ -20,6 +21,7 @@ const localeTranslations = {
es,
it,
ru,
ua,
uk,
}

Expand Down
1 change: 1 addition & 0 deletions src/lib/i18n/i18n-util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export const locales: Locales[] = [
'es',
'it',
'ru',
'ua',
'uk'
]

Expand Down
9 changes: 9 additions & 0 deletions src/lib/i18n/ua/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import type { Translation } from '../i18n-types';
import en from '../en';

const ua: Translation = {
...(en as Translation),
message: 'Привіт Світ',
};

export default ua;