From: Dessalines Date: Sun, 26 Jan 2020 21:32:35 +0000 (-0500) Subject: Adding Catalan to user pref dropdown, moment.js. X-Git-Url: http://these/git/%22%7Burl%7D/%22https:/image.com/%22?a=commitdiff_plain;h=f0051e6d89948bd0bb2f8297931e4c1a1b62817d;p=lemmy.git Adding Catalan to user pref dropdown, moment.js. --- diff --git a/ui/src/utils.ts b/ui/src/utils.ts index 6c22e25b..0aec7624 100644 --- a/ui/src/utils.ts +++ b/ui/src/utils.ts @@ -8,6 +8,7 @@ import 'moment/locale/ru'; import 'moment/locale/nl'; import 'moment/locale/it'; import 'moment/locale/fi'; +import 'moment/locale/ca'; import { UserOperation, @@ -252,6 +253,7 @@ export function debounce( } export const languages = [ + { code: 'ca', name: 'Català' }, { code: 'en', name: 'English' }, { code: 'eo', name: 'Esperanto' }, { code: 'es', name: 'Español' }, @@ -302,6 +304,8 @@ export function getMomentLanguage(): string { lang = 'it'; } else if (lang.startsWith('fi')) { lang = 'fi'; + } else if (lang.startsWith('ca')) { + lang = 'ca'; } else { lang = 'en'; }