Skip to content

Commit

Permalink
Move translations into woonuxt_base
Browse files Browse the repository at this point in the history
  • Loading branch information
scottyzen committed Sep 25, 2023
1 parent 1d4b999 commit 38480aa
Show file tree
Hide file tree
Showing 41 changed files with 20 additions and 18 deletions.
15 changes: 0 additions & 15 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,4 @@ export default defineNuxtConfig({
failOnError: false,
},
},

// Multilingual support
i18n: {
locales: [
{ code: 'en', file: 'en-US.json', name: 'English' },
{ code: 'de', file: 'de-DE.json', name: 'Deutsch' },
{ code: 'es', file: 'es-ES.json', name: 'Español' },
{ code: 'fr', file: 'fr-FR.json', name: 'Français' },
{ code: 'it', file: 'it-IT.json', name: 'Italiano' },
{ code: 'pt', file: 'pt-BR.json', name: 'Português' },
],
langDir: 'lang/',
defaultLocale: 'en',
strategy: 'no_prefix',
},
});
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
<span v-for="(option, i) in attr.options" :key="option.id">
<label>
<input :ref="attr.name" class="hidden" :checked="i == 0" type="radio" :class="`name-${attr.name}`" :name="attr.name" :value="option" @change="updateAttrs($event)" />
<span class="radio-button" :class="`picker-${option}`" :title="`${attr.name}: ${option}`">{{ option }}</span>
<span class="radio-button" :class="`picker-${option}`" :title="`${attr.name}: ${option}`" v-html="option" />
</label>
</span>
</div>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
15 changes: 15 additions & 0 deletions woonuxt_base/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,19 @@ export default defineNuxtConfig({
version: pkg.version || '0.0.0',
},
},

// Multilingual support
i18n: {
locales: [
{ code: 'en', file: 'en-US.json', name: 'English' },
{ code: 'de', file: 'de-DE.json', name: 'Deutsch' },
{ code: 'es', file: 'es-ES.json', name: 'Español' },
{ code: 'fr', file: 'fr-FR.json', name: 'Français' },
{ code: 'it', file: 'it-IT.json', name: 'Italiano' },
{ code: 'pt', file: 'pt-BR.json', name: 'Português' },
],
langDir: 'locales',
defaultLocale: 'en',
strategy: 'no_prefix',
},
});
6 changes: 4 additions & 2 deletions woonuxt_base/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "woonuxt",
"version": "3.1.36",
"version": "3.1.37",
"main": "./nuxt.config.ts",
"type": "module",
"files": [
Expand All @@ -12,6 +12,8 @@
"gql",
"lang",
"types",
"plugins"
"plugins",
"public",
"locales"
]
}
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes

0 comments on commit 38480aa

Please sign in to comment.