Skip to content

Commit

Permalink
feat: Added Ukrainian language support.
Browse files Browse the repository at this point in the history
  • Loading branch information
buiiz committed Sep 28, 2024
1 parent c535162 commit f295f25
Show file tree
Hide file tree
Showing 6 changed files with 1,718 additions and 36 deletions.
72 changes: 36 additions & 36 deletions project.inlang/settings.json
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
{
"$schema": "https://inlang.com/schema/project-settings",
"sourceLanguageTag": "en",
"languageTags": [
"ar",
"cz",
"de",
"en",
"es",
"fa",
"fr",
"hr",
"id",
"it",
"ja",
"ko",
"nb",
"nl",
"pl",
"pt",
"ru",
"sk",
"tr",
"zh",
"zh-tw"
],
"modules": [
"https://cdn.jsdelivr.net/npm/@inlang/plugin-json@4/dist/index.js",
"https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-empty-pattern@latest/dist/index.js",
"https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-identical-pattern@latest/dist/index.js",
"https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-missing-translation@latest/dist/index.js",
"https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-without-source@latest/dist/index.js"
],
"plugin.inlang.json": {
"pathPattern": "./src/assets/i18n/{languageTag}.json"
}
"$schema": "https://inlang.com/schema/project-settings",
"sourceLanguageTag": "en",
"languageTags": [
"ar",
"cz",
"de",
"en",
"es",
"fa",
"fr",
"hr",
"id",
"it",
"ja",
"ko",
"nb",
"nl",
"pl",
"pt",
"ru",
"sk",
"tr",
"uk",
"zh",
"zh-tw"
],
"modules": [
"https://cdn.jsdelivr.net/npm/@inlang/plugin-json@4/dist/index.js",
"https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-empty-pattern@latest/dist/index.js",
"https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-identical-pattern@latest/dist/index.js",
"https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-missing-translation@latest/dist/index.js",
"https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-without-source@latest/dist/index.js"
],
"plugin.inlang.json": {
"pathPattern": "./src/assets/i18n/{languageTag}.json"
}
}

3 changes: 3 additions & 0 deletions src/app/app.constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import '@angular/common/locales/global/pt';
import '@angular/common/locales/global/nl';
import '@angular/common/locales/global/nb';
import '@angular/common/locales/global/hr';
import '@angular/common/locales/global/uk';

export const DAY_STARTS_AT_DEFAULT_H = 9;
export const DAY_STARTS_AT: string = '9:00';
Expand Down Expand Up @@ -68,6 +69,7 @@ export enum LanguageCode {
ru = 'ru',
sk = 'sk',
tr = 'tr',
uk = 'uk',
zh = 'zh',
zh_tw = 'zh_tw',
}
Expand All @@ -92,6 +94,7 @@ export enum LanguageCodeMomentMap {
ru = 'ru',
sk = 'sk',
tr = 'tr',
uk = 'uk',
zh = 'zh-cn',
zh_tw = 'zh-tw',
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export const LANGUAGE_SELECTION_FORM_FORM: ConfigFormSection<LanguageConfig> = {
{ label: T.GCF.LANG.RU, value: LanguageCode.ru },
{ label: T.GCF.LANG.SK, value: LanguageCode.sk },
{ label: T.GCF.LANG.TR, value: LanguageCode.tr },
{ label: T.GCF.LANG.UK, value: LanguageCode.uk },
{ label: T.GCF.LANG.ZH, value: LanguageCode.zh },
{ label: T.GCF.LANG.ZH_TW, value: LanguageCode.zh_tw },
],
Expand Down
1 change: 1 addition & 0 deletions src/app/t.const.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1455,6 +1455,7 @@ const T = {
SK: 'GCF.LANG.SK',
TITLE: 'GCF.LANG.TITLE',
TR: 'GCF.LANG.TR',
UK: 'GCF.LANG.UK',
ZH: 'GCF.LANG.ZH',
ZH_TW: 'GCF.LANG.ZH_TW',
},
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1432,6 +1432,7 @@
"SK": "Slovak",
"TITLE": "Language",
"TR": "Türkçe",
"UK": "Українська",
"ZH": "中文(简体)",
"ZH_TW": "中文(繁體)"
},
Expand Down
Loading

0 comments on commit f295f25

Please sign in to comment.