openhab-webui/bundles
Yannick Schaus 86db1283f9
i18n infrastructure + first end-user facing pages translations (#602)
Related to #394.

Add vue-i18n.
The localized messages are in `@/assets/i18n/{domain}/{locale}.json`,
and are localized by component.
They should be compatible with Crowdin.
They are also referenced in single-file components with this trick:
```
import { loadLocaleMessages } from '@/js/i18n'

export default {
  ...
  i18n: {
    messages: loadLocaleMessages(require.context('@/assets/i18n/{domain}'))
  }
```
That way they should be code splitted away from the entry point bundle
when their related component is, and they are scoped to that component.

The `common` domain with a few common and home page related messages
are loaded on initialization.

English and French messages are provided, as well as German (to be
proofed!) for the `common` domain.

A footer message is added to the settings & developer tools menu if
the locale has common messages to inform the user that these parts are
not translated yet.

Signed-off-by: Yannick Schaus <github@schaus.net>
2020-12-08 20:35:56 +01:00
..
org.openhab.ui i18n infrastructure + first end-user facing pages translations (#602) 2020-12-08 20:35:56 +01:00
org.openhab.ui.basic Use renamed OpenHABBundleServlet class (#594) 2020-12-07 10:34:19 +01:00
org.openhab.ui.cometvisu CometVisu fixes (#590) 2020-12-07 18:22:20 +01:00
org.openhab.ui.cometvisu.php [infrastructure] add external null-annotations (#470) 2020-11-04 15:23:34 +01:00
org.openhab.ui.habot Update LastNPE EEAs to 2.2.1 (#517) 2020-11-30 12:21:30 +01:00
org.openhab.ui.habpanel [infrastructure] add external null-annotations (#470) 2020-11-04 15:23:34 +01:00
org.openhab.ui.iconset.classic [infrastructure] add external null-annotations (#470) 2020-11-04 15:23:34 +01:00
pom.xml Update LastNPE EEAs to 2.2.1 (#517) 2020-11-30 12:21:30 +01:00