chore: removing german from supported languages (#7490)

* chore: removing german from supported languages

* updating tests

* Update src/utils/formatNumbers.test.ts

Co-authored-by: Charles Bachmeier <charles@bachmeier.io>

---------

Co-authored-by: Charles Bachmeier <charles@bachmeier.io>
This commit is contained in:
Jack Short 2023-10-18 13:01:47 -07:00 committed by GitHub
parent aada666c1a
commit 5357c58ac9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 8 deletions

@ -28,7 +28,6 @@ const linguiConfig = {
'ca-ES', 'ca-ES',
'cs-CZ', 'cs-CZ',
'da-DK', 'da-DK',
'de-DE',
'el-GR', 'el-GR',
'en-US', 'en-US',
'es-ES', 'es-ES',

@ -6,7 +6,6 @@ export const SUPPORTED_LOCALES = [
'ca-ES', 'ca-ES',
'cs-CZ', 'cs-CZ',
'da-DK', 'da-DK',
'de-DE',
'el-GR', 'el-GR',
'es-ES', 'es-ES',
'fi-FI', 'fi-FI',
@ -44,7 +43,6 @@ export const LOCALE_LABEL: { [locale in SupportedLocale]: string } = {
'ca-ES': 'Català', 'ca-ES': 'Català',
'cs-CZ': 'čeština', 'cs-CZ': 'čeština',
'da-DK': 'dansk', 'da-DK': 'dansk',
'de-DE': 'Deutsch',
'el-GR': 'ελληνικά', 'el-GR': 'ελληνικά',
'en-US': 'English', 'en-US': 'English',
'es-ES': 'Español', 'es-ES': 'Español',

@ -33,7 +33,6 @@ function expectedOutput(l: SupportedLocale): string {
return `4 000 000,123` return `4 000 000,123`
case 'ca-ES': case 'ca-ES':
case 'da-DK': case 'da-DK':
case 'de-DE':
case 'el-GR': case 'el-GR':
case 'es-ES': case 'es-ES':
case 'id-ID': case 'id-ID':

@ -33,12 +33,12 @@ describe('formatNumber', () => {
expect(formatNumber({ input: 0, type: NumberType.TokenNonTx })).toBe('0') expect(formatNumber({ input: 0, type: NumberType.TokenNonTx })).toBe('0')
}) })
it('formats token reference numbers correctly with deutsch locale', () => { it('formats token reference numbers correctly with Dutch locale', () => {
mocked(useActiveLocale).mockReturnValue('de-DE') mocked(useActiveLocale).mockReturnValue('nl-NL')
const { formatNumber } = renderHook(() => useFormatter()).result.current const { formatNumber } = renderHook(() => useFormatter()).result.current
expect(formatNumber({ input: 1234567000000000, type: NumberType.TokenNonTx })).toBe('>999\xa0Bio.') expect(formatNumber({ input: 1234567000000000, type: NumberType.TokenNonTx })).toBe('>999\xa0bln.')
expect(formatNumber({ input: 1002345, type: NumberType.TokenNonTx })).toBe('1,00\xa0Mio.') 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: 1234, type: NumberType.TokenNonTx })).toBe('1.234,00')
expect(formatNumber({ input: 0.00909, type: NumberType.TokenNonTx })).toBe('0,009') expect(formatNumber({ input: 0.00909, type: NumberType.TokenNonTx })).toBe('0,009')
expect(formatNumber({ input: 0.09001, type: NumberType.TokenNonTx })).toBe('0,090') expect(formatNumber({ input: 0.09001, type: NumberType.TokenNonTx })).toBe('0,090')