mirror of
https://github.com/coder/code-server.git
synced 2026-11-02 22:09:11 +01: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 en from "./locales/en.json"
|
||||||
import * as ja from "./locales/ja.json"
|
import * as ja from "./locales/ja.json"
|
||||||
import * as th from "./locales/th.json"
|
import * as th from "./locales/th.json"
|
||||||
|
import * as tr from "./locales/tr.json"
|
||||||
import * as ur from "./locales/ur.json"
|
import * as ur from "./locales/ur.json"
|
||||||
import * as zhCn from "./locales/zh-cn.json"
|
import * as zhCn from "./locales/zh-cn.json"
|
||||||
|
|
||||||
@@ -16,6 +17,9 @@ const defaultResources = {
|
|||||||
th: {
|
th: {
|
||||||
translation: th,
|
translation: th,
|
||||||
},
|
},
|
||||||
|
tr: {
|
||||||
|
translation: tr,
|
||||||
|
},
|
||||||
ja: {
|
ja: {
|
||||||
translation: ja,
|
translation: ja,
|
||||||
},
|
},
|
||||||
|
|||||||
13
src/node/i18n/locales/tr.json
Normal file
13
src/node/i18n/locales/tr.json
Normal file
@@ -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 { promises as fs } from "fs"
|
||||||
import * as os from "os"
|
import * as os from "os"
|
||||||
import * as path from "path"
|
import * as path from "path"
|
||||||
import { loadCustomStrings } from "../../../src/node/i18n"
|
import i18n, { loadCustomStrings } from "../../../src/node/i18n"
|
||||||
|
|
||||||
describe("i18n", () => {
|
describe("i18n", () => {
|
||||||
|
it("includes Turkish translations", () => {
|
||||||
|
expect(i18n.getResource("tr", "translation", "WELCOME")).toBe("{{app}} uygulamasına hoş geldiniz")
|
||||||
|
})
|
||||||
|
|
||||||
let tempDir: string
|
let tempDir: string
|
||||||
let validJsonFile: string
|
let validJsonFile: string
|
||||||
let invalidJsonFile: string
|
let invalidJsonFile: string
|
||||||
|
|||||||
Reference in New Issue
Block a user