diff --git a/examples/expo/languine.config.ts b/examples/expo/languine.config.ts index c9a1f17..bd2e19e 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.9", + version: "7.0.0", 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/locales/i18n.ts b/examples/expo/locales/i18n.ts index 6f35423..c7ba1e1 100644 --- a/examples/expo/locales/i18n.ts +++ b/examples/expo/locales/i18n.ts @@ -1,16 +1,16 @@ // For more information on Expo Localization and usage: https://docs.expo.dev/guides/localization -import { getLocales } from "expo-localization"; -import { I18n } from "i18n-js"; +import { getLocales } from 'expo-localization'; +import { I18n } from 'i18n-js'; const translations = { - en: require("./en.json"), - es: require("./es.json"), -}; + en: require('./en.json'), + es: require('./es.json') +} const i18n = new I18n(translations); -i18n.locale = getLocales().at(0)?.languageCode ?? "en"; +i18n.locale = getLocales().at(0)?.languageCode ?? 'en'; i18n.enableFallback = true; -export default i18n; +export default i18n; \ No newline at end of file diff --git a/examples/expo/package.json b/examples/expo/package.json index 6876021..ede6cf4 100644 --- a/examples/expo/package.json +++ b/examples/expo/package.json @@ -32,7 +32,7 @@ "expo-system-ui": "~4.0.6", "expo-web-browser": "~14.0.1", "i18n-js": "^4.5.1", - "languine": "workspace:*", + "languine": "^7.0.0", "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 5136cd4..3d3c039 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "languine", - "version": "7.0.0", + "version": "7.0.1", "type": "module", "bin": "dist/index.js", "main": "dist/config.js", diff --git a/packages/cli/src/utils.ts b/packages/cli/src/utils.ts index de2c891..7d4e0d1 100644 --- a/packages/cli/src/utils.ts +++ b/packages/cli/src/utils.ts @@ -100,15 +100,15 @@ export function generateConfig({ provider: "${provider}", model: "${model}", }, -};`; +}`; if (configType === "mjs") { - return `export default ${configBody}`; + return `export default ${configBody};`; } return `import { defineConfig } from "languine"; -export default defineConfig(${configBody})`; +export default defineConfig(${configBody});`; } export async function configFile(configType?: string) {