Skip to content

Commit

Permalink
feat(i18n): add Turkish Translation
Browse files Browse the repository at this point in the history
* Update LocalePicker.tsx

Added Turkish Translation

* Add files via upload

* Add files via upload

* Add Turksih Translation

* Update localeNames.json

Add Turkish Translation

* fix(i18n): fix localenames

* fix(i18n): remove dummy tr translation

Co-authored-by: nurikk <ainur@yojee.com>
  • Loading branch information
ahmetem and nurikk committed May 2, 2022
1 parent ffb0876 commit 78bb6d6
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/i18n/LocalePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,14 @@ import ko from "./flags/kr.png";
import cs from "./flags/cz.png";
import fi from "./flags/fi.png";
import sv from "./flags/sv.png";
import tr from "./flags/tr.png";
import missing from "./flags/missing-locale.png";


import localeNames from './locales/localeNames.json';

const localesMap = {
ca, en, fr, pl, de, ru, ptbr, es, ua, chs, nl, it, zh, ko, cs, fi, sv
ca, en, fr, pl, de, ru, ptbr, es, ua, chs, nl, it, zh, ko, cs, fi, sv, tr
}


Expand Down
Binary file added src/i18n/flags/tr.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/i18n/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import koTranslations from './locales/ko.json';
import csTranslations from './locales/cs.json';
import fiTranslations from './locales/fi.json';
import svTranslations from './locales/sv.json';
import trTranslations from './locales/tr.json';


import timeCa from "timeago.js/lib/lang/ca";
Expand All @@ -37,6 +38,7 @@ import timeKo from "timeago.js/lib/lang/ko";
import timeCs from "timeago.js/lib/lang/cs";
import timeFi from "timeago.js/lib/lang/fi";
import timeSv from "timeago.js/lib/lang/sv";
import timeTr from "timeago.js/lib/lang/tr";


register("ca", timeCa);
Expand All @@ -55,6 +57,7 @@ register("zh", timeZh);
register("cs", timeCs);
register("fi", timeFi);
register("sv", timeSv);
register("tr", timeTr);



Expand All @@ -77,6 +80,7 @@ export const resources = {
cs: csTranslations as ResourceLanguage,
fi: fiTranslations as ResourceLanguage,
sv: svTranslations as ResourceLanguage,
tr: trTranslations as ResourceLanguage,

} as const;

Expand Down
3 changes: 2 additions & 1 deletion src/i18n/locales/localeNames.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@
"cs": "Česky",
"fi": "Suomi",
"sv": "Svenska",
"ca": "Català"
"ca": "Català",
"tr": "Turkish"
}
1 change: 1 addition & 0 deletions src/i18n/locales/tr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}

0 comments on commit 78bb6d6

Please sign in to comment.