Merge pull request 'Mark no interface language Beta' (#24) from i18n/no-beta-languages into main
This commit was merged in pull request #24.
This commit is contained in:
commit
d5c49c2962
2 files changed
+14
-19
No files matched your search
@@ -29,17 +29,10 @@ describe("resolveUiLanguage", () => {
|
||||
expect(resolveUiLanguage("xx-XX")).toBe("en");
|
||||
});
|
||||
|
||||
it("carries the Beta flag until a person has signed the language off", () => {
|
||||
// Not a completeness measure. A catalog can be word-for-word finished
|
||||
// and still read like a machine wrote it, which is what this marks.
|
||||
// English is the source and Dutch was signed off by a native speaker in
|
||||
// September 2026. Every other language is unreviewed, and stays marked
|
||||
// until a person says otherwise.
|
||||
const reviewed = new Set(["en", "nl"]);
|
||||
for (const l of UI_LANGUAGES) {
|
||||
if (reviewed.has(l.tag)) expect(l.beta).toBeUndefined();
|
||||
else expect(l.beta).toBe(true);
|
||||
}
|
||||
it("marks no language Beta", () => {
|
||||
// inbuxa: every shipped language is offered without the Beta mark
|
||||
// (John, 2026-09-27); only Dutch has been read by a native speaker.
|
||||
for (const l of UI_LANGUAGES) expect(l.beta).toBeUndefined();
|
||||
});
|
||||
|
||||
it("honors one that is", () => {
|
||||
|
||||
@@ -35,17 +35,19 @@ export interface UiLanguage {
|
||||
beta?: boolean;
|
||||
}
|
||||
|
||||
// inbuxa: no language is marked Beta (John, 2026-09-27). The flag and its
|
||||
// settings note stay, so public ihasmail's changes to them still apply.
|
||||
export const UI_LANGUAGES: readonly UiLanguage[] = [
|
||||
{ tag: "en", name: "English" },
|
||||
{ tag: "de", name: "Deutsch", beta: true },
|
||||
{ tag: "es", name: "Español", beta: true },
|
||||
{ tag: "fr", name: "Français", beta: true },
|
||||
{ tag: "de", name: "Deutsch" },
|
||||
{ tag: "es", name: "Español" },
|
||||
{ tag: "fr", name: "Français" },
|
||||
{ tag: "nl", name: "Nederlands" },
|
||||
{ tag: "pt-BR", name: "Português (Brasil)", beta: true },
|
||||
{ tag: "ja", name: "日本語", beta: true },
|
||||
{ tag: "ru", name: "Русский", beta: true },
|
||||
{ tag: "uk", name: "Українська", beta: true },
|
||||
{ tag: "zh-Hans", name: "简体中文", beta: true },
|
||||
{ tag: "pt-BR", name: "Português (Brasil)" },
|
||||
{ tag: "ja", name: "日本語" },
|
||||
{ tag: "ru", name: "Русский" },
|
||||
{ tag: "uk", name: "Українська" },
|
||||
{ tag: "zh-Hans", name: "简体中文" },
|
||||
];
|
||||
|
||||
/** Where to report a bad translation. Beta languages depend on it. */
|
||||
|
||||
Reference in new issue
Block a user