Skip to content

Commit 82215bb

Browse files
smulle48nurikk
andauthored
Update .gitignore & Danish translation (initial) (#1542)
* Update .gitignore add .DS_Store to .gitignore * Danish translation (initial) Initial danish translation (without .DS_Store files) :-) * Update dk.json Co-authored-by: John Doe <[email protected]>
1 parent 873f115 commit 82215bb

File tree

6 files changed

+12
-2
lines changed

6 files changed

+12
-2
lines changed

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@ node_modules
22
/build
33
/*.log
44
dist
5+
.DS_Store
56

67
### IntelliJ IDEA ###
78
.idea
89
*.iws
910
*.iml
1011
*.ipr
11-
out/
12+
out/
13+
.DS_Store

src/i18n/LocalePicker.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,14 @@ import fi from "./flags/fi.png";
2424
import sv from "./flags/sv.png";
2525
import tr from "./flags/tr.png";
2626
import no from "./flags/no.png";
27+
import dk from "./flags/dk.png";
2728
import missing from "./flags/missing-locale.png";
2829

2930

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

3233
const localesMap = {
33-
ca, en, fr, pl, de, ru, ptbr, es, ua, chs, nl, it, zh, ko, cs, fi, sv, tr, no
34+
ca, en, fr, pl, de, ru, ptbr, es, ua, chs, nl, it, zh, ko, cs, fi, sv, tr, no, dk
3435
}
3536

3637

src/i18n/flags/dk.png

2.49 KB
Loading

src/i18n/index.ts

+4
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import fiTranslations from './locales/fi.json';
2121
import svTranslations from './locales/sv.json';
2222
import trTranslations from './locales/tr.json';
2323
import noTranslations from './locales/no.json';
24+
import dkTranslations from './locales/dk.json';
2425

2526

2627
import timeCa from "timeago.js/lib/lang/ca";
@@ -41,6 +42,7 @@ import timeFi from "timeago.js/lib/lang/fi";
4142
import timeSv from "timeago.js/lib/lang/sv";
4243
import timeTr from "timeago.js/lib/lang/tr";
4344
import timeNo from "timeago.js/lib/lang/nb_NO";
45+
import timeDk from "timeago.js/lib/lang/dk";
4446

4547

4648
register("ca", timeCa);
@@ -61,6 +63,7 @@ register("fi", timeFi);
6163
register("sv", timeSv);
6264
register("tr", timeTr);
6365
register("no", timeNo);
66+
register("dk", timeDk);
6467

6568

6669

@@ -85,6 +88,7 @@ export const resources = {
8588
sv: svTranslations as ResourceLanguage,
8689
tr: trTranslations as ResourceLanguage,
8790
no: noTranslations as ResourceLanguage,
91+
dk: dkTranslations as ResourceLanguage,
8892

8993
} as const;
9094

src/i18n/locales/dk.json

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
{
2+
}

src/i18n/locales/localeNames.json

+1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,5 @@
1818
"ca": "Català",
1919
"tr": "Turkish",
2020
"no": "Norwegian"
21+
"dk": "Danish"
2122
}

0 commit comments

Comments
 (0)