web: move all strings to i18n & improve a11y

- omnibox is now fully usable with a screen reader
- back button is now interpreted as such
- subtext now accepts line breaks
This commit is contained in:
wukko
2024-07-03 23:54:44 +06:00
parent 19ad343c3e
commit 1371615b96
25 changed files with 282 additions and 90 deletions

View File

@@ -46,6 +46,27 @@ export const config: Config = {
await import(`$i18n/en/a11y/meowbalt.json`)
).default,
},
{
locale: 'en',
key: 'settings',
loader: async () => (
await import(`$i18n/en/settings.json`)
).default,
},
{
locale: 'en',
key: 'general',
loader: async () => (
await import(`$i18n/en/general.json`)
).default,
},
{
locale: 'en',
key: 'a11y.general',
loader: async () => (
await import(`$i18n/en/a11y/general.json`)
).default,
},
{
locale: 'ru',
@@ -82,6 +103,20 @@ export const config: Config = {
await import(`$i18n/ru/a11y/meowbalt.json`)
).default,
},
{
locale: 'ru',
key: 'general',
loader: async () => (
await import(`$i18n/ru/general.json`)
).default,
},
{
locale: 'ru',
key: 'a11y.general',
loader: async () => (
await import(`$i18n/ru/a11y/general.json`)
).default,
},
],
};