diff options
Diffstat (limited to 'ui/src/utils.ts')
-rw-r--r-- | ui/src/utils.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ui/src/utils.ts b/ui/src/utils.ts index 1cd5c9c4..c7de7a51 100644 --- a/ui/src/utils.ts +++ b/ui/src/utils.ts @@ -1,3 +1,11 @@ +import 'moment/locale/es'; +import 'moment/locale/eo'; +import 'moment/locale/de'; +import 'moment/locale/zh-cn'; +import 'moment/locale/fr'; +import 'moment/locale/sv'; +import 'moment/locale/ru'; + import { UserOperation, Comment, User, SortType, ListingType } from './interfaces'; import * as markdown_it from 'markdown-it'; import * as markdown_it_container from 'markdown-it-container'; @@ -188,6 +196,8 @@ export function getMomentLanguage(): string { lang = 'ru'; } else if (lang.startsWith('es')) { lang = 'es'; + } else if (lang.startsWith('eo')) { + lang = 'eo'; } else { lang = 'en'; } |