summaryrefslogtreecommitdiffstats
path: root/ui/src/utils.ts
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2020-01-29 20:35:41 -0500
committerDessalines <tyhou13@gmx.com>2020-01-29 20:35:41 -0500
commitc3a4097421b96ddc0184bc6f4dc71651ac37b67a (patch)
tree84651267cbeb4e836ee2414d88ebd93fc3cb3403 /ui/src/utils.ts
parentc93a56a964ce27605243f1128e4968171c373db1 (diff)
Removing english placeholders for Farsi.
Diffstat (limited to 'ui/src/utils.ts')
-rw-r--r--ui/src/utils.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/src/utils.ts b/ui/src/utils.ts
index 0aec7624..0ec29114 100644
--- a/ui/src/utils.ts
+++ b/ui/src/utils.ts
@@ -9,6 +9,7 @@ import 'moment/locale/nl';
import 'moment/locale/it';
import 'moment/locale/fi';
import 'moment/locale/ca';
+import 'moment/locale/fa';
import {
UserOperation,
@@ -258,6 +259,7 @@ export const languages = [
{ code: 'eo', name: 'Esperanto' },
{ code: 'es', name: 'Español' },
{ code: 'de', name: 'Deutsch' },
+ { code: 'fa', name: 'فارسی' },
{ code: 'zh', name: '中文' },
{ code: 'fi', name: 'Suomi' },
{ code: 'fr', name: 'Français' },
@@ -306,6 +308,8 @@ export function getMomentLanguage(): string {
lang = 'fi';
} else if (lang.startsWith('ca')) {
lang = 'ca';
+ } else if (lang.startsWith('fa')) {
+ lang = 'fa';
} else {
lang = 'en';
}