pgkiln 0.67.0 → 0.68.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -19,20 +19,30 @@ import { de } from './i18n/de.ts';
19
19
  import { en } from './i18n/en.ts';
20
20
  import { es } from './i18n/es.ts';
21
21
  import { fr } from './i18n/fr.ts';
22
+ import { it } from './i18n/it.ts';
23
+ import { ja } from './i18n/ja.ts';
24
+ import { ko } from './i18n/ko.ts';
22
25
  import { nl } from './i18n/nl.ts';
23
26
  import { pt } from './i18n/pt.ts';
27
+ import { zhCN } from './i18n/zh-cn.ts';
28
+ import { zhTW } from './i18n/zh-tw.ts';
24
29
 
25
30
  export type BuilderKey = keyof typeof en;
26
31
  export type BuilderMessages = Record<BuilderKey, string>;
27
32
  export type Params = Record<string, string | number | null | undefined>;
28
33
 
29
- /** The builder's languages, in the order of the language menu and the sign-in page's links (names in their own language). */
34
+ /**
35
+ * The builder's languages, in the order of the language menu and the sign-in page's links (names in their own
36
+ * language): APEX's ten (sprint 134, SEC-5: Italiano, both Chinese scripts, Japanese, Korean) and Nederlands.
37
+ * The codes are BCP 47 tags, used as they are in <html lang>, the cookie and meta.developer.language.
38
+ */
30
39
  export const BUILDER_LANGUAGES = [
31
- ['de', 'Deutsch'], ['en', 'English'], ['es', 'Español'], ['fr', 'Français'], ['nl', 'Nederlands'], ['pt', 'Português'],
40
+ ['de', 'Deutsch'], ['en', 'English'], ['es', 'Español'], ['fr', 'Français'], ['it', 'Italiano'], ['nl', 'Nederlands'], ['pt', 'Português'],
41
+ ['zh-CN', '中文 (简体)'], ['zh-TW', '中文 (繁體)'], ['ja', '日本語'], ['ko', '한국어'],
32
42
  ] as const;
33
43
  export type BuilderLang = (typeof BUILDER_LANGUAGES)[number][0];
34
44
 
35
- const MESSAGES: Record<BuilderLang, Readonly<Record<string, string>>> = { en, de, es, fr, nl, pt };
45
+ const MESSAGES: Record<BuilderLang, Readonly<Record<string, string>>> = { en, de, es, fr, it, nl, pt, 'zh-CN': zhCN, 'zh-TW': zhTW, ja, ko };
36
46
 
37
47
  /** The cookie with the sign-in page's language on this device (the builder's path only). */
38
48
  export const LANG_COOKIE = 'pgkiln_blang';