Skip to content

Commit

Permalink
Remove locale en-gb as it was only made as a first example for the i1…
Browse files Browse the repository at this point in the history
…8n (#718)

Remove locale en-gb as it was only as a first example for the i18n
  • Loading branch information
Pelsin committed Dec 29, 2023
1 parent 976d98a commit 27902e9
Show file tree
Hide file tree
Showing 10 changed files with 1 addition and 55 deletions.
2 changes: 0 additions & 2 deletions www/src/Components/LanguageSelector.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,13 @@ import { Dropdown } from 'react-bootstrap';
import { AppContext } from '../Contexts/AppContext';
import { useTranslation } from 'react-i18next';
import GlobeIcon from '../Icons/Globe';
import GbFlag from '../Icons/Flags/Gb';
import UsFlag from '../Icons/Flags/Us';
import zhCNFlag from '../Icons/Flags/zhCN';
import ptBRFlag from '../Icons/Flags/ptBR';
import deDEFlag from '../Icons/Flags/De';

const dropdownOptions = [
{ code: 'en', icon: UsFlag },
{ code: 'en-GB', icon: GbFlag },
{ code: 'pt-BR', icon: ptBRFlag },
{ code: 'zh-CN', icon: zhCNFlag },
{ code: 'de-DE', icon: deDEFlag },
Expand Down
25 changes: 0 additions & 25 deletions www/src/Icons/Flags/Gb.tsx

This file was deleted.

1 change: 0 additions & 1 deletion www/src/Locales/de-DE/Components.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
export default {
'language-selector': {
'en-GB': 'English (UK)',
en: 'English (US)',
nl: 'Nederlands (Dutch)',
'pt-BR': 'Português Brasil (Brazilian Portuguese)',
Expand Down
5 changes: 0 additions & 5 deletions www/src/Locales/en-GB/Common.jsx

This file was deleted.

4 changes: 0 additions & 4 deletions www/src/Locales/en-GB/CustomTheme.jsx

This file was deleted.

9 changes: 0 additions & 9 deletions www/src/Locales/en-GB/Index.jsx

This file was deleted.

5 changes: 0 additions & 5 deletions www/src/Locales/en-GB/LedConfig.jsx

This file was deleted.

1 change: 0 additions & 1 deletion www/src/Locales/en/Components.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
export default {
'language-selector': {
'en-GB': 'English (UK)',
en: 'English (US)',
nl: 'Nederlands (Dutch)',
'pt-BR': 'Português Brasil (Brazilian Portuguese)',
Expand Down
1 change: 0 additions & 1 deletion www/src/Locales/zh-CN/Components.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
export default {
'language-selector': {
'en-GB': 'English UK (英语(英))',
en: 'English US (英语)',
nl: 'Nederlands (荷兰语)',
'pt-BR': 'Português Brasil (巴西葡萄牙语)',
Expand Down
3 changes: 1 addition & 2 deletions www/src/i18n.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import i18n from 'i18next';
import { initReactI18next } from 'react-i18next';
import LanguageDetector from 'i18next-browser-languagedetector';
import en from './Locales/en/Index';
import enGB from './Locales/en-GB/Index';
import zhCN from './Locales/zh-CN/Index';
import ptBR from './Locales/pt-BR/Index';
import deDE from './Locales/de-DE/Index';
Expand All @@ -19,7 +18,7 @@ i18n
detection: {
order: ['localStorage', 'navigator'],
},
resources: { en, 'en-GB': enGB, 'pt-BR': ptBR, 'zh-CN': zhCN, 'de-DE': deDE, },
resources: { en, 'pt-BR': ptBR, 'zh-CN': zhCN, 'de-DE': deDE },
});

export default i18n;

0 comments on commit 27902e9

Please sign in to comment.