Skip to content

Commit 52e528f

Browse files
committed
Remove incomplete languages and cleanup
1 parent 4709f98 commit 52e528f

File tree

6 files changed

+2
-41
lines changed

6 files changed

+2
-41
lines changed

frontend/src/locale/IntlProvider.tsx

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,22 @@
11
import { createIntl, createIntlCache } from "react-intl";
22
import langEn from "./lang/en.json";
3-
import langFa from "./lang/fa.json";
43
import langList from "./lang/lang-list.json";
54

65
// first item of each array should be the language code,
76
// not the country code
87
// Remember when adding to this list, also update check-locales.js script
9-
const localeOptions = [
10-
["en", "en-US"],
11-
["fa", "fa-IR"],
12-
];
8+
const localeOptions = [["en", "en-US"]];
139

1410
const loadMessages = (locale?: string): typeof langList & typeof langEn => {
1511
const thisLocale = locale || "en";
1612
switch (thisLocale.slice(0, 2)) {
17-
case "fa":
18-
return Object.assign({}, langList, langEn, langFa);
1913
default:
2014
return Object.assign({}, langList, langEn);
2115
}
2216
};
2317

2418
const getFlagCodeForLocale = (locale?: string) => {
2519
switch (locale) {
26-
case "fa-IR":
27-
case "fa":
28-
return "IR";
2920
default:
3021
return "EN";
3122
}

frontend/src/locale/lang/fa.json

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
{
2-
"locale-de-DE": "Deutsch",
3-
"locale-en-US": "English",
4-
"locale-fa-IR": "فارسی"
2+
"locale-en-US": "English"
53
}

frontend/src/locale/src/fa.json

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
{
2-
"locale-de-DE": {
3-
"defaultMessage": "Deutsch"
4-
},
52
"locale-en-US": {
63
"defaultMessage": "English"
7-
},
8-
"locale-fa-IR": {
9-
"defaultMessage": "فارسی"
104
}
115
}

frontend/src/pages/Dashboard/index.tsx

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -125,20 +125,6 @@ const Dashboard = () => {
125125
</div>
126126
</div>
127127
</div>
128-
<pre>
129-
<code>{`Todo:
130-
131-
- check mobile
132-
- REDO SCREENSHOTS in docs folder
133-
- check permissions in all places
134-
135-
More for api, then implement here:
136-
- Add error message_18n for all backend errors
137-
- properly wrap all logger.debug called in isDebug check
138-
- add new api endpoint changes to swagger docs
139-
140-
`}</code>
141-
</pre>
142128
</div>
143129
);
144130
};

0 commit comments

Comments
 (0)