ffplayout/frontend/i18n/locales
2024-10-14 12:27:55 +02:00
..
de-DE.js better advanced config form 2024-10-14 12:27:55 +02:00
en-US.js better advanced config form 2024-10-14 12:27:55 +02:00
pt-BR.js better advanced config form 2024-10-14 12:27:55 +02:00
README.md Merge frontend into project 2024-09-24 10:49:37 +02:00
ru-RU.js better advanced config form 2024-10-14 12:27:55 +02:00

Add Language

You are very welcome to add more languages! Just copy en-US.js to the correct target Country code and modify the content.

When you are done with the translation add the filename to nuxt.config.ts, in section:

i18n: {
    locales: [
        {
            code: 'de',
            name: 'Deutsch',
            file: 'de-DE.js',
        },
        {
            code: 'en',
            name: 'English',
            file: 'en-US.js',
        },
+        {
+            code: '<SHORT CODE>',
+            name: '<NAME>',
+            file: '<CODE>.js',
+        },
    ],

    ...

And also add the new link paths:

i18n: {
    locales: [...],
    ...
    pages: {
        'player': {
            de: '/wiedergabe',
            en: '/player',
+           <CODE>: /<PATH>,
        },

    ...