@uipkge/nuxt 0.1.37 → 0.1.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/cli.mjs CHANGED
@@ -117,7 +117,7 @@ async function smartMerge(configPath, projectId) {
117
117
  if (!config.i18n) {
118
118
  config.i18n = {
119
119
  defaultLocale: "en",
120
- locales: ["en"],
120
+ locales: ["en", "es"],
121
121
  };
122
122
  } else if (!config.i18n.defaultLocale) {
123
123
  config.i18n.defaultLocale = "en";
@@ -153,7 +153,8 @@ function createTestPage() {
153
153
  fs.writeFileSync(
154
154
  testPagePath,
155
155
  `<script setup>
156
- const { t, locale } = useI18now()
156
+ const { t } = useI18now()
157
+ const { locale, setLocale } = useI18n()
157
158
  </script>
158
159
 
159
160
  <template>
@@ -166,7 +167,7 @@ const { t, locale } = useI18now()
166
167
  <p>{{ t('test.feature_sync', 'Key sync is enabled in development mode.') }}</p>
167
168
 
168
169
  <h2>{{ t('test.language_switcher', 'Language Switcher:') }}</h2>
169
- <select v-model="locale" style="padding: 8px; margin: 10px 0;">
170
+ <select :value="locale" @change="setLocale($event.target.value)" style="padding: 8px; margin: 10px 0;">
170
171
  <option value="en">English</option>
171
172
  <option value="es">Espa\u00f1ol</option>
172
173
  </select>
package/dist/module.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": ">=3.0.0"
6
6
  },
7
- "version": "0.1.37",
7
+ "version": "0.1.39",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.2",
10
10
  "unbuild": "unknown"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipkge/nuxt",
3
- "version": "0.1.37",
3
+ "version": "0.1.39",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "bin": {