diff --git a/lingui.config.ts b/lingui.config.ts index dd9dba09b3..289ebbbb1a 100644 --- a/lingui.config.ts +++ b/lingui.config.ts @@ -28,7 +28,6 @@ const linguiConfig = { 'ca-ES', 'cs-CZ', 'da-DK', - 'de-DE', 'el-GR', 'en-US', 'es-ES', diff --git a/src/constants/locales.ts b/src/constants/locales.ts index 4ac3da9af6..1c5f44eb45 100644 --- a/src/constants/locales.ts +++ b/src/constants/locales.ts @@ -6,7 +6,6 @@ export const SUPPORTED_LOCALES = [ 'ca-ES', 'cs-CZ', 'da-DK', - 'de-DE', 'el-GR', 'es-ES', 'fi-FI', @@ -44,7 +43,6 @@ export const LOCALE_LABEL: { [locale in SupportedLocale]: string } = { 'ca-ES': 'Català', 'cs-CZ': 'čeština', 'da-DK': 'dansk', - 'de-DE': 'Deutsch', 'el-GR': 'ελληνικά', 'en-US': 'English', 'es-ES': 'Español', diff --git a/src/lib/utils/formatLocaleNumber.test.ts b/src/lib/utils/formatLocaleNumber.test.ts index 01563c99fd..856bb0c775 100644 --- a/src/lib/utils/formatLocaleNumber.test.ts +++ b/src/lib/utils/formatLocaleNumber.test.ts @@ -33,7 +33,6 @@ function expectedOutput(l: SupportedLocale): string { return `4 000 000,123` case 'ca-ES': case 'da-DK': - case 'de-DE': case 'el-GR': case 'es-ES': case 'id-ID': diff --git a/src/utils/formatNumbers.test.ts b/src/utils/formatNumbers.test.ts index e36003ac00..c8164d4e25 100644 --- a/src/utils/formatNumbers.test.ts +++ b/src/utils/formatNumbers.test.ts @@ -33,12 +33,12 @@ describe('formatNumber', () => { expect(formatNumber({ input: 0, type: NumberType.TokenNonTx })).toBe('0') }) - it('formats token reference numbers correctly with deutsch locale', () => { - mocked(useActiveLocale).mockReturnValue('de-DE') + it('formats token reference numbers correctly with Dutch locale', () => { + mocked(useActiveLocale).mockReturnValue('nl-NL') const { formatNumber } = renderHook(() => useFormatter()).result.current - expect(formatNumber({ input: 1234567000000000, type: NumberType.TokenNonTx })).toBe('>999\xa0Bio.') - expect(formatNumber({ input: 1002345, type: NumberType.TokenNonTx })).toBe('1,00\xa0Mio.') + expect(formatNumber({ input: 1234567000000000, type: NumberType.TokenNonTx })).toBe('>999\xa0bln.') + expect(formatNumber({ input: 1002345, type: NumberType.TokenNonTx })).toBe('1,00\xa0mln.') expect(formatNumber({ input: 1234, type: NumberType.TokenNonTx })).toBe('1.234,00') expect(formatNumber({ input: 0.00909, type: NumberType.TokenNonTx })).toBe('0,009') expect(formatNumber({ input: 0.09001, type: NumberType.TokenNonTx })).toBe('0,090')