diff --git a/bun.lockb b/bun.lockb index 7b5069e..ba0556b 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/examples/expo/app.json b/examples/expo/app.json index eac238a..f715768 100644 --- a/examples/expo/app.json +++ b/examples/expo/app.json @@ -46,4 +46,4 @@ "es": "./locales/native/es.json" } } -} +} \ No newline at end of file diff --git a/examples/expo/languine.config.ts b/examples/expo/languine.config.ts index 350e28d..c9a1f17 100644 --- a/examples/expo/languine.config.ts +++ b/examples/expo/languine.config.ts @@ -1,7 +1,7 @@ import { defineConfig } from "languine"; export default defineConfig({ - version: "0.6.6", + version: "0.6.9", locale: { source: "en", targets: ["es"], @@ -15,4 +15,4 @@ export default defineConfig({ provider: "openai", model: "gpt-4-turbo", }, -}); +};) \ No newline at end of file diff --git a/examples/expo/package.json b/examples/expo/package.json index 411e969..0f9fb2b 100644 --- a/examples/expo/package.json +++ b/examples/expo/package.json @@ -32,6 +32,7 @@ "expo-system-ui": "~4.0.6", "expo-web-browser": "~14.0.1", "i18n-js": "^4.5.1", + "languine": "^0.6.9", "react": "18.3.1", "react-dom": "18.3.1", "react-native": "0.76.5", diff --git a/packages/cli/package.json b/packages/cli/package.json index 7893397..5136cd4 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "languine", - "version": "0.6.9", + "version": "7.0.0", "type": "module", "bin": "dist/index.js", "main": "dist/config.js", diff --git a/packages/cli/src/presets/expo.ts b/packages/cli/src/presets/expo.ts index f49c5c4..f347fb4 100644 --- a/packages/cli/src/presets/expo.ts +++ b/packages/cli/src/presets/expo.ts @@ -37,7 +37,7 @@ async function installDependencies() { const shouldInstall = await confirm({ message: - "Would you like to install required dependencies (i18n-js, expo-localization)?", + "Would you like to install required dependencies (i18n-js, expo-localization, languine)?", }); if (!shouldInstall) { @@ -48,7 +48,7 @@ async function installDependencies() { s.start("Installing dependencies..."); try { const pm = await findPreferredPM(); - await execAsync(`${pm?.name} install i18n-js`); + await execAsync(`${pm?.name} install i18n-js languine`); await execAsync("npx expo install expo-localization"); s.stop("Dependencies installed successfully"); diff --git a/packages/cli/src/utils.ts b/packages/cli/src/utils.ts index 4133450..de2c891 100644 --- a/packages/cli/src/utils.ts +++ b/packages/cli/src/utils.ts @@ -94,13 +94,13 @@ export function generateConfig({ files: { ${formatKey}: { include: [${filesPatterns.map((p) => `"${p}"`).join(", ")}], - } + }, }, llm: { provider: "${provider}", model: "${model}", - } -}`; + }, +};`; if (configType === "mjs") { return `export default ${configBody}`;