mirror of
https://github.com/coder/code-server.git
synced 2026-10-25 09:51:48 +08:00
Add Turkish locale (#8050)
This commit is contained in:
@@ -3,6 +3,7 @@ import i18next, { init } from "i18next"
|
||||
import * as en from "./locales/en.json"
|
||||
import * as ja from "./locales/ja.json"
|
||||
import * as th from "./locales/th.json"
|
||||
import * as tr from "./locales/tr.json"
|
||||
import * as ur from "./locales/ur.json"
|
||||
import * as zhCn from "./locales/zh-cn.json"
|
||||
|
||||
@@ -16,6 +17,9 @@ const defaultResources = {
|
||||
th: {
|
||||
translation: th,
|
||||
},
|
||||
tr: {
|
||||
translation: tr,
|
||||
},
|
||||
ja: {
|
||||
translation: ja,
|
||||
},
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"LOGIN_TITLE": "{{app}} girişi",
|
||||
"LOGIN_BELOW": "Lütfen aşağıdan giriş yapın.",
|
||||
"WELCOME": "{{app}} uygulamasına hoş geldiniz",
|
||||
"LOGIN_PASSWORD": "Parola için yapılandırma dosyasını kontrol edin.",
|
||||
"LOGIN_USING_ENV_PASSWORD": "Parola $PASSWORD ortam değişkeninden ayarlandı.",
|
||||
"LOGIN_USING_HASHED_PASSWORD": "Parola $HASHED_PASSWORD ortam değişkeninden ayarlandı.",
|
||||
"SUBMIT": "GÖNDER",
|
||||
"PASSWORD_PLACEHOLDER": "PAROLA",
|
||||
"LOGIN_RATE_LIMIT": "Giriş denemesi sınırına ulaşıldı!",
|
||||
"MISS_PASSWORD": "Parola eksik",
|
||||
"INCORRECT_PASSWORD": "Parola yanlış."
|
||||
}
|
||||
@@ -1,9 +1,13 @@
|
||||
import { promises as fs } from "fs"
|
||||
import * as os from "os"
|
||||
import * as path from "path"
|
||||
import { loadCustomStrings } from "../../../src/node/i18n"
|
||||
import i18n, { loadCustomStrings } from "../../../src/node/i18n"
|
||||
|
||||
describe("i18n", () => {
|
||||
it("includes Turkish translations", () => {
|
||||
expect(i18n.getResource("tr", "translation", "WELCOME")).toBe("{{app}} uygulamasına hoş geldiniz")
|
||||
})
|
||||
|
||||
let tempDir: string
|
||||
let validJsonFile: string
|
||||
let invalidJsonFile: string
|
||||
|
||||
Reference in New Issue
Block a user