Feature/setup catala (#3593)

* Set up Català

* Update changelog
This commit is contained in:
Thomas Kaul
2024-07-20 17:13:44 +02:00
committed by GitHub
parent 5601299648
commit 3f6319e00b
20 changed files with 7687 additions and 1003 deletions

View File

@@ -132,6 +132,7 @@ export const REPLACE_NAME_PARTS = [
];
export const SUPPORTED_LANGUAGE_CODES = [
'ca',
'de',
'en',
'es',

View File

@@ -11,7 +11,7 @@ import {
parseISO,
subDays
} from 'date-fns';
import { de, es, fr, it, nl, pl, pt, tr, zhCN } from 'date-fns/locale';
import { ca, de, es, fr, it, nl, pl, pt, tr, zhCN } from 'date-fns/locale';
import {
DEFAULT_CURRENCY,
@@ -171,7 +171,9 @@ export function getCurrencyFromSymbol(aSymbol = '') {
}
export function getDateFnsLocale(aLanguageCode: string) {
if (aLanguageCode === 'de') {
if (aLanguageCode === 'ca') {
return ca;
} else if (aLanguageCode === 'de') {
return de;
} else if (aLanguageCode === 'es') {
return es;