Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
pontusab committed Jan 16, 2025
1 parent 1914eac commit bf305c6
Show file tree
Hide file tree
Showing 13 changed files with 1 addition and 68 deletions.
6 changes: 0 additions & 6 deletions apps/web/languine.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { defineConfig } from "languine";

export default defineConfig({
version: "1.0.2",
locale: {
source: "en",
targets: ["es", "fr", "de", "ja", "zh", "ar", "ko", "sv", "no", "fi", "pt"],
Expand All @@ -11,9 +10,4 @@ export default defineConfig({
include: ["src/locales/[locale].ts"],
},
},
llm: {
provider: "openai",
model: "gpt-4-turbo",
},
extract: ["./src/**/*.{ts,tsx}"],
});
5 changes: 0 additions & 5 deletions examples/email/languine.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { defineConfig } from "languine";

export default defineConfig({
version: "0.7.0",
locale: {
source: "en",
targets: ["es", "sv", "pt"],
Expand All @@ -11,9 +10,5 @@ export default defineConfig({
include: ["locales/[locale].json"],
},
},
llm: {
provider: "openai",
model: "gpt-4-turbo",
},
extract: ["./emails/**/*.tsx"],
});
5 changes: 0 additions & 5 deletions examples/expo/languine.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { defineConfig } from "languine";

export default defineConfig({
version: "0.7.0",
locale: {
source: "en",
targets: ["es"],
Expand All @@ -11,8 +10,4 @@ export default defineConfig({
include: ["locales/native/[locale].json", "locales/[locale].json"],
},
},
llm: {
provider: "openai",
model: "gpt-4-turbo",
},
});
8 changes: 1 addition & 7 deletions examples/fumadocs/languine.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { defineConfig } from "languine";
import { writeFile } from "node:fs/promises";
import path from "node:path";
import { defaultTranslations } from "fumadocs-ui/i18n";
import { defineConfig } from "languine";
import { i18n } from "./lib/i18n";

// translate Fumadocs' UI content
Expand All @@ -11,12 +11,6 @@ await writeFile(
);

export default defineConfig({
llm: {
provider: "openai",
model: "gpt-4-turbo",
temperature: 0,
},
version: "1.0.0",
locale: {
source: i18n.defaultLanguage,
targets: i18n.languages.filter((v) => v !== i18n.defaultLanguage),
Expand Down
5 changes: 0 additions & 5 deletions examples/i18next/languine.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { defineConfig } from "languine";

export default defineConfig({
version: "0.6.6",
locale: {
source: "en",
targets: ["sv"],
Expand All @@ -11,8 +10,4 @@ export default defineConfig({
include: ["locales/[locale].json"],
},
},
llm: {
provider: "openai",
model: "gpt-4-turbo",
},
});
5 changes: 0 additions & 5 deletions examples/lingui/languine.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ const biome = await Biome.create({
});

export default defineConfig({
version: "1.0.0",
locale: {
source: "en",
targets: ["de"],
Expand All @@ -16,10 +15,6 @@ export default defineConfig({
include: ["locales/[locale].json"],
},
},
llm: {
provider: "openai",
model: "gpt-4-turbo",
},
hooks: {
// Optional: Format the content with Biome
afterTranslate: async ({ content, filePath }) => {
Expand Down
5 changes: 0 additions & 5 deletions examples/next-international/languine.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { defineConfig } from "languine";

export default defineConfig({
version: "0.5.6",
locale: {
source: "en",
targets: ["fr"],
Expand All @@ -11,8 +10,4 @@ export default defineConfig({
include: ["locales/[locale].ts"],
},
},
llm: {
provider: "openai",
model: "gpt-4-turbo",
},
});
5 changes: 0 additions & 5 deletions examples/next-intl/languine.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { defineConfig } from "languine";

export default defineConfig({
version: "1.0.0",
locale: {
source: "en",
targets: ["de"],
Expand All @@ -11,8 +10,4 @@ export default defineConfig({
include: ["messages/[locale].json"],
},
},
llm: {
provider: "openai",
model: "gpt-4-turbo",
},
});
5 changes: 0 additions & 5 deletions examples/po/languine.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { defineConfig } from "languine";

export default defineConfig({
version: "0.6.2",
locale: {
source: "en",
targets: ["es"],
Expand All @@ -11,8 +10,4 @@ export default defineConfig({
include: ["locales/[locale].po"],
},
},
llm: {
provider: "openai",
model: "gpt-4-turbo",
},
});
5 changes: 0 additions & 5 deletions examples/xcode-strings/languine.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { defineConfig } from "languine";

export default defineConfig({
version: "0.6.2",
locale: {
source: "en",
targets: ["es"],
Expand All @@ -11,8 +10,4 @@ export default defineConfig({
include: ["Example/[locale].lproj/Localizable.strings"],
},
},
llm: {
provider: "openai",
model: "gpt-4-turbo",
},
});
5 changes: 0 additions & 5 deletions examples/xcode-stringsdict/languine.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { defineConfig } from "languine";

export default defineConfig({
version: "0.6.2",
locale: {
source: "en",
targets: ["es"],
Expand All @@ -11,8 +10,4 @@ export default defineConfig({
include: ["Example/[locale].lproj/Localizable.stringsdict"],
},
},
llm: {
provider: "openai",
model: "gpt-4-turbo",
},
});
5 changes: 0 additions & 5 deletions examples/xcode-xcstrings/languine.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { defineConfig } from "languine";

export default defineConfig({
version: "0.6.2",
locale: {
source: "en",
targets: ["de", "fr"],
Expand All @@ -11,8 +10,4 @@ export default defineConfig({
include: ["Example/Localizable.xcstrings"],
},
},
llm: {
provider: "openai",
model: "gpt-4-turbo",
},
});
5 changes: 0 additions & 5 deletions examples/yaml/languine.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { defineConfig } from "languine";

export default defineConfig({
version: "0.6.2",
locale: {
source: "en",
targets: ["es"],
Expand All @@ -11,8 +10,4 @@ export default defineConfig({
include: ["locales/[locale].yml"],
},
},
llm: {
provider: "openai",
model: "gpt-4-turbo",
},
});

0 comments on commit bf305c6

Please sign in to comment.