feat(i18n): add Turkish locale

This commit is contained in:
Sinan Eldem authored and GitHub committed 2026-09-04 02:22:21 +08:00
1 parent 232426ced2
commit 79dbda2a8f
26 files changed
+9540 -18

No files matched your search

+2 -1
View File
@@ -7,6 +7,7 @@ import es from "../../apps/desktop/src/i18n/locales/es";
import it from "../../apps/desktop/src/i18n/locales/it";
import ja from "../../apps/desktop/src/i18n/locales/ja";
import ko from "../../apps/desktop/src/i18n/locales/ko";
import tr from "../../apps/desktop/src/i18n/locales/tr";
import ptBR from "../../apps/desktop/src/i18n/locales/pt-BR";
import zhCN from "../../apps/desktop/src/i18n/locales/zh-CN";
import zhTW from "../../apps/desktop/src/i18n/locales/zh-TW";
@@ -77,7 +78,7 @@ test("Claude Code CLI errors are localized while retaining their stable code and
});
test("every current locale defines all AI CLI diagnostic messages", () => {
const locales = { en, es, it, ja, ko, ptBR, zhCN, zhTW } as const;
const locales = { en, es, it, ja, ko, ptBR, tr, zhCN, zhTW } as const;
for (const [localeName, locale] of Object.entries(locales)) {
assert.equal(typeof locale.ai.requestFailed, "string", `${localeName}.ai.requestFailed`);
+2 -1
View File
@@ -5,12 +5,13 @@ import es from "../../apps/desktop/src/i18n/locales/es.ts";
import it from "../../apps/desktop/src/i18n/locales/it.ts";
import ja from "../../apps/desktop/src/i18n/locales/ja.ts";
import ko from "../../apps/desktop/src/i18n/locales/ko.ts";
import tr from "../../apps/desktop/src/i18n/locales/tr.ts";
import ptBR from "../../apps/desktop/src/i18n/locales/pt-BR.ts";
import zhCN from "../../apps/desktop/src/i18n/locales/zh-CN.ts";
import zhTW from "../../apps/desktop/src/i18n/locales/zh-TW.ts";
test("every locale defines the PostgreSQL legacy TLS labels", () => {
const locales = { en, es, it, ja, ko, ptBR, zhCN, zhTW } as const;
const locales = { en, es, it, ja, ko, ptBR, tr, zhCN, zhTW } as const;
for (const [localeName, locale] of Object.entries(locales)) {
assert.ok(locale.connection.postgresLegacyTls.length > 0, `${localeName}: connection.postgresLegacyTls`);
+2 -1
View File
@@ -7,6 +7,7 @@ import es from "../../apps/desktop/src/i18n/locales/es.ts";
import it from "../../apps/desktop/src/i18n/locales/it.ts";
import ja from "../../apps/desktop/src/i18n/locales/ja.ts";
import ko from "../../apps/desktop/src/i18n/locales/ko.ts";
import tr from "../../apps/desktop/src/i18n/locales/tr.ts";
import ptBR from "../../apps/desktop/src/i18n/locales/pt-BR.ts";
import zhCN from "../../apps/desktop/src/i18n/locales/zh-CN.ts";
import zhTW from "../../apps/desktop/src/i18n/locales/zh-TW.ts";
@@ -80,7 +81,7 @@ test("ContentArea wires server messages into the switcher and the messages view"
});
test("every locale defines the query message strings", () => {
const locales = { en, es, it, ja, ko, "pt-BR": ptBR, "zh-CN": zhCN, "zh-TW": zhTW };
const locales = { en, es, it, ja, ko, "pt-BR": ptBR, tr, "zh-CN": zhCN, "zh-TW": zhTW };
for (const [name, locale] of Object.entries(locales)) {
assert.ok(locale.queryMessages.empty.length > 0, `${name}: queryMessages.empty`);
+1 -1
View File
@@ -6,7 +6,7 @@ const runtimeHost = readFileSync("apps/desktop/src/components/sidebar/SidebarTre
const connectionMutationRuntime = readFileSync("apps/desktop/src/composables/useSidebarConnectionMutationRuntime.ts", "utf8");
const databaseSpecificMutationRuntime = readFileSync("apps/desktop/src/composables/useSidebarDatabaseSpecificMutationRuntime.ts", "utf8");
const tableMutationRuntime = readFileSync("apps/desktop/src/composables/useSidebarTableMutationRuntime.ts", "utf8");
const localeSources = Object.fromEntries(["en", "es", "it", "ja", "ko", "pt-BR", "zh-CN", "zh-TW"].map((locale) => [locale, readFileSync(`apps/desktop/src/i18n/locales/${locale}.ts`, "utf8")]));
const localeSources = Object.fromEntries(["en", "es", "it", "ja", "ko", "pt-BR", "tr", "zh-CN", "zh-TW"].map((locale) => [locale, readFileSync(`apps/desktop/src/i18n/locales/${locale}.ts`, "utf8")]));
function functionBody(name: string): string {
const source = [runtimeHost, connectionMutationRuntime, databaseSpecificMutationRuntime, tableMutationRuntime].find((candidate) => candidate.includes(`function ${name}(`));