diff --git a/public/locales/de-DE/translation.json b/public/locales/de-DE/translation.json index e46347a..4694e10 100644 --- a/public/locales/de-DE/translation.json +++ b/public/locales/de-DE/translation.json @@ -1,16 +1,29 @@ { "user.interface": "Benutzeroberfläche", + "user.interface.appearance":"Erscheinungsbild", + "user.interface.appearance.small":"klein", + "user.interface.appearance.medium":"mittel", + "user.interface.appearance.large":"groß", + + "user.interface.pagesize.description": "Page size", + "user.interface.pagesize.help": "Specifies the pagination size in tables", + "user.interface.pagesize.hint": "Page size", "lang.en": "Englisch", "lang.de": "Deutsch", "lang.es": "Spanisch", + "lang.fr": "Französisch", + "lang.ru": "Russisch", + "lang.jp": "Japanisch", + "lang.it": "Italienisch", + "lang.help": "Ändert die Sprache", "lang.select": "Select language", "lang.description": "Select the language", - "theme.description": "Theme", - "theme.select":"Theme auswählen", - "theme.help": "Das aktuelle Theme", + "theme.description": "Thema", + "theme.select":"Thema auswählen", + "theme.help": "Das aktuelle Thema", "theme.dark":"Dunkel", "theme.light": "Hell", "theme.pastel": "Pastelfarbend", diff --git a/public/locales/en-GB/translation.json b/public/locales/en-GB/translation.json index 7e96882..e555805 100644 --- a/public/locales/en-GB/translation.json +++ b/public/locales/en-GB/translation.json @@ -1,12 +1,25 @@ { "user.interface": "User interface", + "user.interface.appearance":"Appearance", + "user.interface.appearance.small":"small", + "user.interface.appearance.medium":"medium", + "user.interface.appearance.large":"large", + + "user.interface.pagesize.description": "Page size", + "user.interface.pagesize.help": "Specifies the pagination size in tables", + "user.interface.pagesize.hint": "Page size", "lang.en": "English", "lang.de": "German", "lang.es": "Spanish", + "lang.fr": "French", + "lang.ru": "Russian", + "lang.jp": "Japanese", + "lang.it": "Italian", + "lang.help": "Sets the language for the user interface", "lang.select": "Select language", - "lang.select.description": "Select the language", + "lang.description": "Select the language", "theme.description": "Theme", "theme.select": "Select theme", @@ -16,6 +29,7 @@ "theme.pastel": "pastel", "theme.ocean":"ocean", + "byte.representation.description":"Select byte representation", "byte.representation.select":"Select byte representation", "byte.representation.help":"Specifies the representation of bytes" } \ No newline at end of file diff --git a/public/locales/es-ES/translation.json b/public/locales/es-ES/translation.json index 876ede5..e545b4b 100644 --- a/public/locales/es-ES/translation.json +++ b/public/locales/es-ES/translation.json @@ -1,21 +1,35 @@ { - "user.interface": "User interface", + "user.interface": "Interfaz de usuario", + "user.interface.appearance":"Presentación", + "user.interface.appearance.small":"pequeño", + "user.interface.appearance.medium":"medio", + "user.interface.appearance.large":"gran", - "lang.en": "Ingles", - "lang.de": "German", - "lang.es": "Spanish", - "lang.help": "Sets the language for the user interface", - "lang.select": "Select language", - "lang.select.description": "Select the language", + "user.interface.pagesize.description": "Page size", + "user.interface.pagesize.help": "Specifies the pagination size in tables", + "user.interface.pagesize.hint": "Page size", - "theme.description": "Theme", + "lang.en": "Inglés", + "lang.de": "Alemán", + "lang.es": "Español", + "lang.fr": "Francés", + "lang.ru": "Russian", + "lang.jp": "Japanese", + "lang.it": "Italian", + + "lang.help": "Establece el idioma de la interfaz de usuario", + "lang.select": "Seleccionar idioma", + "lang.description": "Seleccione el idioma", + + "theme.description": "Tema", "theme.select": "Select theme", "theme.help": "The current active theme", - "theme.dark":"dark", - "theme.light": "light", + "theme.dark":"oscuro", + "theme.light": "luz", "theme.pastel": "pastel", - "theme.ocean":"ocean", + "theme.ocean":"océano", + "byte.representation.description":"Select byte representation", "byte.representation.select":"Select byte representation", "byte.representation.help":"Specifies the representation of bytes" } \ No newline at end of file diff --git a/public/locales/fr-FR/translation.json b/public/locales/fr-FR/translation.json new file mode 100644 index 0000000..af9ff2d --- /dev/null +++ b/public/locales/fr-FR/translation.json @@ -0,0 +1,35 @@ +{ + "user.interface": "Interface utilisateur", + "user.interface.appearance":"Appearance", + "user.interface.appearance.small":"small", + "user.interface.appearance.medium":"medium", + "user.interface.appearance.large":"large", + + "user.interface.pagesize.description": "Page size", + "user.interface.pagesize.help": "Specifies the pagination size in tables", + "user.interface.pagesize.hint": "Page size", + + "lang.en": "English", + "lang.de": "German", + "lang.es": "Spanish", + "lang.fr": "Français", + "lang.ru": "Russian", + "lang.jp": "Japanese", + "lang.it": "Italian", + + "lang.help": "Sets the language for the user interface", + "lang.select": "Select language", + "lang.description": "Select the language", + + "theme.description": "Theme", + "theme.select": "Select theme", + "theme.help": "The current active theme", + "theme.dark":"dark", + "theme.light": "light", + "theme.pastel": "pastel", + "theme.ocean":"ocean", + + "byte.representation.description":"Select byte representation", + "byte.representation.select":"Select byte representation", + "byte.representation.help":"Specifies the representation of bytes" +} \ No newline at end of file diff --git a/public/locales/it-IT/translation.json b/public/locales/it-IT/translation.json new file mode 100644 index 0000000..af9ff2d --- /dev/null +++ b/public/locales/it-IT/translation.json @@ -0,0 +1,35 @@ +{ + "user.interface": "Interface utilisateur", + "user.interface.appearance":"Appearance", + "user.interface.appearance.small":"small", + "user.interface.appearance.medium":"medium", + "user.interface.appearance.large":"large", + + "user.interface.pagesize.description": "Page size", + "user.interface.pagesize.help": "Specifies the pagination size in tables", + "user.interface.pagesize.hint": "Page size", + + "lang.en": "English", + "lang.de": "German", + "lang.es": "Spanish", + "lang.fr": "Français", + "lang.ru": "Russian", + "lang.jp": "Japanese", + "lang.it": "Italian", + + "lang.help": "Sets the language for the user interface", + "lang.select": "Select language", + "lang.description": "Select the language", + + "theme.description": "Theme", + "theme.select": "Select theme", + "theme.help": "The current active theme", + "theme.dark":"dark", + "theme.light": "light", + "theme.pastel": "pastel", + "theme.ocean":"ocean", + + "byte.representation.description":"Select byte representation", + "byte.representation.select":"Select byte representation", + "byte.representation.help":"Specifies the representation of bytes" +} \ No newline at end of file diff --git a/public/locales/jp-JP/translation.json b/public/locales/jp-JP/translation.json new file mode 100644 index 0000000..af9ff2d --- /dev/null +++ b/public/locales/jp-JP/translation.json @@ -0,0 +1,35 @@ +{ + "user.interface": "Interface utilisateur", + "user.interface.appearance":"Appearance", + "user.interface.appearance.small":"small", + "user.interface.appearance.medium":"medium", + "user.interface.appearance.large":"large", + + "user.interface.pagesize.description": "Page size", + "user.interface.pagesize.help": "Specifies the pagination size in tables", + "user.interface.pagesize.hint": "Page size", + + "lang.en": "English", + "lang.de": "German", + "lang.es": "Spanish", + "lang.fr": "Français", + "lang.ru": "Russian", + "lang.jp": "Japanese", + "lang.it": "Italian", + + "lang.help": "Sets the language for the user interface", + "lang.select": "Select language", + "lang.description": "Select the language", + + "theme.description": "Theme", + "theme.select": "Select theme", + "theme.help": "The current active theme", + "theme.dark":"dark", + "theme.light": "light", + "theme.pastel": "pastel", + "theme.ocean":"ocean", + + "byte.representation.description":"Select byte representation", + "byte.representation.select":"Select byte representation", + "byte.representation.help":"Specifies the representation of bytes" +} \ No newline at end of file diff --git a/public/locales/ru-RU/translation.json b/public/locales/ru-RU/translation.json new file mode 100644 index 0000000..af9ff2d --- /dev/null +++ b/public/locales/ru-RU/translation.json @@ -0,0 +1,35 @@ +{ + "user.interface": "Interface utilisateur", + "user.interface.appearance":"Appearance", + "user.interface.appearance.small":"small", + "user.interface.appearance.medium":"medium", + "user.interface.appearance.large":"large", + + "user.interface.pagesize.description": "Page size", + "user.interface.pagesize.help": "Specifies the pagination size in tables", + "user.interface.pagesize.hint": "Page size", + + "lang.en": "English", + "lang.de": "German", + "lang.es": "Spanish", + "lang.fr": "Français", + "lang.ru": "Russian", + "lang.jp": "Japanese", + "lang.it": "Italian", + + "lang.help": "Sets the language for the user interface", + "lang.select": "Select language", + "lang.description": "Select the language", + + "theme.description": "Theme", + "theme.select": "Select theme", + "theme.help": "The current active theme", + "theme.dark":"dark", + "theme.light": "light", + "theme.pastel": "pastel", + "theme.ocean":"ocean", + + "byte.representation.description":"Select byte representation", + "byte.representation.select":"Select byte representation", + "byte.representation.help":"Specifies the representation of bytes" +} \ No newline at end of file diff --git a/src/contexts/UIPreferencesContext.tsx b/src/contexts/UIPreferencesContext.tsx index 1613136..5d946b2 100644 --- a/src/contexts/UIPreferencesContext.tsx +++ b/src/contexts/UIPreferencesContext.tsx @@ -12,7 +12,7 @@ const DEFAULT_PREFERENCES = { pageSize: PAGE_SIZES[0], bytesStringBase2: false, export type Theme = "light" | "dark" | "pastel" | "ocean"; export type PageSize = 10 | 20 | 30 | 40 | 50 | 100; export type FontSize = "fs-6" | "fs-5" | "fs-4"; -export type Language = "en-GB" | "de-DE" | "es-ES"; +export type Language = "en-GB" | "de-DE" | "es-ES" | "fr-FR" | "jp-JP" | "ru-RU" | "it-IT"; export interface UIPreferences { get pageSize(): PageSize diff --git a/src/pages/Preferences.jsx b/src/pages/Preferences.jsx index a6c8508..1289d14 100644 --- a/src/pages/Preferences.jsx +++ b/src/pages/Preferences.jsx @@ -36,20 +36,20 @@ export function Preferences() {
- + Specifies the appearance of the user interface

- + - Specifies the pagination size in tables + type='text' placeholder={t('user.interface.pagesize.hint')} value={pageSize} disabled={true} /> + {t('user.interface.pagesize.help')}
@@ -63,6 +63,10 @@ export function Preferences() { + + + + {t('lang.help')}