aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/DEVELOPMENT.md23
1 files changed, 23 insertions, 0 deletions
diff --git a/docs/DEVELOPMENT.md b/docs/DEVELOPMENT.md
index 370bf42b..94c1bac7 100644
--- a/docs/DEVELOPMENT.md
+++ b/docs/DEVELOPMENT.md
@@ -221,6 +221,29 @@ export const i18n = createI18n({
});
```
+In order to be able to select it, make sure to that it to the `LanguageSelector` componenent in `src-vue/src/components/LanguageSelector.vue`.
+
+```vue
+export default defineComponent({
+ name: 'LanguageSelector',
+ data: () => ({
+ value: '',
+ options: [
+ {
+ value: 'en',
+ label: 'English'
+ },
+ <!-- ... -->
+ {
+ value: 'de',
+ label: 'Deutsch'
+ },
+ ]
+ }),
+ <!-- ... -->
+})
+```
+
There are different ways to use translations in views; in HTML template, invoke the `$t` method with translation key:
```html