sisyo 1.7.0 → 1.9.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.
- package/LICENSE +16 -16
- package/README.md +177 -166
- package/bin/known-hashes.json +8 -1
- package/bin/sisyo.js +285 -285
- package/package.json +30 -30
- package/templates/.claude/rules/agents-and-tests.md +32 -24
- package/templates/.claude/rules/docs.md +39 -19
- package/templates/.claude/skills/fastapi-best-practices/ASYNC-PATTERNS.md +121 -121
- package/templates/.claude/skills/fastapi-best-practices/DATABASE.md +153 -153
- package/templates/.claude/skills/fastapi-best-practices/DEPENDENCIES.md +140 -140
- package/templates/.claude/skills/fastapi-best-practices/PROJECT-STRUCTURE.md +90 -90
- package/templates/.claude/skills/fastapi-best-practices/PYDANTIC-GUIDE.md +155 -155
- package/templates/.claude/skills/fastapi-best-practices/SKILL.md +123 -123
- package/templates/.claude/skills/g6-style/SKILL.md +125 -125
- package/templates/.claude/skills/g6-style/references/checks.md +58 -58
- package/templates/.claude/skills/g6-style/references/imagery.md +103 -103
- package/templates/.claude/skills/g6-style/references/motion.md +121 -121
- package/templates/.claude/skills/g6-style/references/sections.md +263 -263
- package/templates/.claude/skills/g6-style/references/tokens.md +197 -197
- package/templates/.claude/skills/hindsight/SKILL.md +175 -175
- package/templates/.claude/skills/hoang-auth/SKILL.md +188 -0
- package/templates/.claude/skills/html-docs/SKILL.md +207 -207
- package/templates/.claude/skills/i18n-multilang/SKILL.md +153 -153
- package/templates/.claude/skills/i18n-multilang/assets/languages.json +47 -47
- package/templates/.claude/skills/i18n-multilang/assets/plural-vectors.json +46 -46
- package/templates/.claude/skills/i18n-multilang/assets/project/README.md +17 -17
- package/templates/.claude/skills/i18n-multilang/assets/project/gitattributes.txt +6 -6
- package/templates/.claude/skills/i18n-multilang/assets/project/gitignore.txt +4 -4
- package/templates/.claude/skills/i18n-multilang/assets/project/glossary.json +6 -6
- package/templates/.claude/skills/i18n-multilang/assets/project/i18n.config.json +22 -22
- package/templates/.claude/skills/i18n-multilang/assets/project/locales/__source__/common.json +10 -10
- package/templates/.claude/skills/i18n-multilang/assets/project/notes/common.json +5 -5
- package/templates/.claude/skills/i18n-multilang/assets/project/style.md +20 -20
- package/templates/.claude/skills/i18n-multilang/references/format.md +100 -100
- package/templates/.claude/skills/i18n-multilang/references/languages.md +97 -97
- package/templates/.claude/skills/i18n-multilang/references/layout-and-versioning.md +256 -256
- package/templates/.claude/skills/i18n-multilang/references/numbers.md +161 -161
- package/templates/.claude/skills/i18n-multilang/references/platform-unity.md +142 -142
- package/templates/.claude/skills/i18n-multilang/references/platform-web.md +107 -107
- package/templates/.claude/skills/i18n-multilang/references/translation.md +143 -143
- package/templates/.claude/skills/i18n-multilang/references/voice.md +271 -271
- package/templates/.claude/skills/i18n-multilang/scripts/i18n.py +1041 -1041
- package/templates/.claude/skills/i18n-multilang/scripts/numwords.py +1013 -1013
- package/templates/.claude/skills/i18n-multilang/scripts/voice.py +478 -478
- package/templates/.claude/skills/neon-game-ui-ux-skill/COMPONENTS.md +490 -490
- package/templates/.claude/skills/neon-game-ui-ux-skill/GAMIFICATION.md +246 -246
- package/templates/.claude/skills/neon-game-ui-ux-skill/ICONS.md +249 -249
- package/templates/.claude/skills/neon-game-ui-ux-skill/LAYOUT-NAV.md +362 -362
- package/templates/.claude/skills/neon-game-ui-ux-skill/MOTION-A11Y.md +168 -168
- package/templates/.claude/skills/neon-game-ui-ux-skill/SKILL.md +137 -137
- package/templates/.claude/skills/neon-game-ui-ux-skill/TOKENS.md +323 -323
- package/templates/.claude/skills/react-page-oriented/SKILL.md +407 -407
- package/templates/.claude/skills/react-page-oriented/triggers.md +12 -12
- package/templates/.claude/skills/terraform-best-practices/SKILL.md +341 -341
- package/templates/.claude/skills/typesafe-jev/SKILL.md +148 -148
- package/templates/.claude/skills/vibe-docs/SKILL.md +139 -242
- package/templates/SISYO.md +39 -37
- package/templates/docs/99_progress/features.md +7 -7
- package/templates/docs/99_progress/handoff.md +19 -19
- package/templates/docs/99_progress/todo.md +15 -15
- package/templates/docs/MAP.md +26 -26
|
@@ -1,97 +1,97 @@
|
|
|
1
|
-
# Languages: which ones, when they show, how one is chosen
|
|
2
|
-
|
|
3
|
-
The registry is `assets/languages.json` (code, English name, native name, script, direction, plural forms, voice,
|
|
4
|
-
rendering needs, aliases, fallback). `python scripts/i18n.py languages` prints it with the project's view.
|
|
5
|
-
|
|
6
|
-
## The two sets
|
|
7
|
-
|
|
8
|
-
| Set | Languages | Rule |
|
|
9
|
-
|---|---|---|
|
|
10
|
-
| **Text (default)** | 40: en, ja, es, pt-BR, ko, zh-Hans, de, fr, vi, id, zh-Hant, it, ru, tr, pl, nl, th, uk, cs, sv, da, nb, fi, el, hu, ro, sk, hr, bg, ca, ms, fil, hi, bn, ta, ar, he, fa, ur, pt-PT | every product translates its text into all of them, minus what its renderer cannot show (below). |
|
|
11
|
-
| **Voice** | 10: en, ja, es, pt-BR, ko, zh-Hans, de, fr, vi, id | the default voice set, the languages a voice backend is expected to cover. Voice is made only for the languages **and** lines a product names ([voice.md](voice.md)) |
|
|
12
|
-
|
|
13
|
-
Codes are BCP-47: language, then script or region where it matters (`zh-Hans`, `zh-Hant`, `pt-BR`, `pt-PT`). Use
|
|
14
|
-
exactly these codes in folders, config, manifests, settings and on the wire. Legacy codes are mapped, never stored:
|
|
15
|
-
`jp`→`ja`, `iw`→`he`, `in`→`id`, `tl`→`fil`, `no`→`nb`, `zh-CN`→`zh-Hans`, `zh-TW`→`zh-Hant`.
|
|
16
|
-
|
|
17
|
-
A language outside the registry (a new market) is added in the project's `extraLanguages` with the same fields, or to
|
|
18
|
-
the registry itself when every product should get it. Take the plural forms from
|
|
19
|
-
`new Intl.PluralRules(code).resolvedOptions().pluralCategories`.
|
|
20
|
-
|
|
21
|
-
## What the renderer can show: `capabilities`
|
|
22
|
-
|
|
23
|
-
Some scripts need more than glyphs. A language that needs a capability the project has not declared is `blocked`: it
|
|
24
|
-
is not translated, not packed, not offered. Declaring a capability is a claim that was **tested with a screenshot**.
|
|
25
|
-
|
|
26
|
-
| Capability | Needed by | What it means |
|
|
27
|
-
|---|---|---|
|
|
28
|
-
| `rtl` | ar, he, fa, ur | right-to-left paragraphs, mirrored layout, bidirectional text with numbers and Latin words |
|
|
29
|
-
| `shaping` | ar, fa, ur, hi, bn, ta, th | letters join or reorder, marks stack (OpenType GSUB/GPOS). Without it the text is wrong, not just ugly |
|
|
30
|
-
|
|
31
|
-
| Platform | `capabilities` |
|
|
32
|
-
|---|---|
|
|
33
|
-
| Web (browser), Electron, native iOS/Android text, React Native, Flutter | `["rtl", "shaping"]`; RTL still needs the layout checked (`dir="rtl"`, logical CSS properties) |
|
|
34
|
-
| Unity uGUI legacy `Text`, TextMeshPro without a plugin | `[]` → 32 languages (the 8 above stay blocked) |
|
|
35
|
-
| Unity with a shaping solution (UI Toolkit's Advanced Text Generator in Unity 6, or an RTL/HarfBuzz plugin) | declare what a screenshot test of real sentences proves |
|
|
36
|
-
|
|
37
|
-
Fonts are a separate matter from shaping: CJK, Cyrillic, Greek and Thai glyphs must exist in a font the product ships
|
|
38
|
-
or can fall back to. Per script, the Noto family is the safe default (Noto Sans JP / KR / SC / TC / Thai / Devanagari /
|
|
39
|
-
Bengali / Tamil / Arabic / Hebrew; Latin, Greek and Cyrillic are in Noto Sans). See the platform file for how each
|
|
40
|
-
runtime loads them.
|
|
41
|
-
|
|
42
|
-
## When a language appears in the app
|
|
43
|
-
|
|
44
|
-
A language is offered only when its manifest entry says `status: "ready"`: every text is translated and current. A `partial` language is packed (so a user who already chose it keeps it
|
|
45
|
-
and gets fallbacks for the gaps) but is not listed for new users.
|
|
46
|
-
|
|
47
|
-
This is why translating belongs to the feature: adding one untranslated text turns 39 languages `partial`, and
|
|
48
|
-
`pack` refuses to write that regression.
|
|
49
|
-
|
|
50
|
-
## The language picker
|
|
51
|
-
|
|
52
|
-
- A searchable list (type-ahead), one row per ready language: **`<English name> (<native name>)`**, for example
|
|
53
|
-
`Japanese (日本語)`, `Vietnamese (Tiếng Việt)`. Both names come from the manifest.
|
|
54
|
-
- The search matches the English name, the native name and the code, ignoring case and accents: "tieng viet" finds
|
|
55
|
-
Tiếng Việt; "japan", "ja" and "日本" find Japanese.
|
|
56
|
-
- Order: the device's languages first, then the current one, then the rest by English name.
|
|
57
|
-
- Each row shows its state: in the app / downloaded / needs download with the size. Changing language applies
|
|
58
|
-
immediately, without a restart, and is saved.
|
|
59
|
-
- The control that opens the picker carries a globe icon and the word "Language" in the current language **and** in
|
|
60
|
-
English, so someone who landed in a language they cannot read finds the way back.
|
|
61
|
-
- Voice, where a product has it, is a second setting ("Voice: …") that lists only the voice languages that product
|
|
62
|
-
ships. It defaults to the text language when that has voice, else to the product's `voice.fallback`.
|
|
63
|
-
|
|
64
|
-
## The default language on first launch
|
|
65
|
-
|
|
66
|
-
1. Read the device's **ordered list** of preferred languages (iOS `Locale.preferredLanguages`, Android `LocaleList`,
|
|
67
|
-
browser `navigator.languages`). Unity's `Application.systemLanguage` gives one coarse value and cannot tell
|
|
68
|
-
`pt-BR` from `pt-PT` or `zh-Hans` from `zh-Hant`: use it only as the last resort.
|
|
69
|
-
2. For each device language in order, take the first ready language that matches by: exact code → `aliases` → same
|
|
70
|
-
language and script (`zh-Hant-HK` → `zh-Hant`) → same base language (`es-MX` → `es`, `fr-CA` → `fr`).
|
|
71
|
-
3. Nothing matched → `en`; no English → the source language.
|
|
72
|
-
4. Save the choice. From then on only the user changes it. An app update never changes a saved language.
|
|
73
|
-
|
|
74
|
-
Stores read the supported languages from the build: list the ready languages in iOS `CFBundleLocalizations` and
|
|
75
|
-
Android `locales_config` / `resConfigs`, so the store page and the per-app language setting show them.
|
|
76
|
-
|
|
77
|
-
## Fallback for a missing text
|
|
78
|
-
|
|
79
|
-
`active language → its fallback list → source language → the key`. The manifest's `fallback` list is the registry's
|
|
80
|
-
(`pt-PT → pt-BR`, `ca → es`) followed by `en` and the source language. Never fall back across unrelated languages
|
|
81
|
-
(Ukrainian does not fall back to Russian, Traditional Chinese does not fall back to Simplified).
|
|
82
|
-
|
|
83
|
-
## Plural forms per language
|
|
84
|
-
|
|
85
|
-
| Forms | Languages |
|
|
86
|
-
|---|---|
|
|
87
|
-
| other | ja, ko, zh-Hans, zh-Hant, vi, id, th, ms |
|
|
88
|
-
| one, other | en, de, nl, sv, da, nb, fi, el, hu, tr, bg, fil, hi, bn, ta, fa, ur |
|
|
89
|
-
| one, many, other | es, pt-BR, pt-PT, fr, it, ca (`many` is used for exact millions: give it the `other` wording) |
|
|
90
|
-
| one, few, other | ro, hr |
|
|
91
|
-
| one, few, many, other | ru, uk, pl, cs, sk |
|
|
92
|
-
| one, two, other | he |
|
|
93
|
-
| zero, one, two, few, many, other | ar |
|
|
94
|
-
|
|
95
|
-
On the web `Intl.PluralRules` picks the form. A runtime without it ports `plural_category()` from `scripts/i18n.py`
|
|
96
|
-
and tests itself against `assets/plural-vectors.json` (taken from ICU). "one" is not always the number 1: in French
|
|
97
|
-
and Brazilian Portuguese it is 0 and 1; in Russian it is 1, 21, 31…
|
|
1
|
+
# Languages: which ones, when they show, how one is chosen
|
|
2
|
+
|
|
3
|
+
The registry is `assets/languages.json` (code, English name, native name, script, direction, plural forms, voice,
|
|
4
|
+
rendering needs, aliases, fallback). `python scripts/i18n.py languages` prints it with the project's view.
|
|
5
|
+
|
|
6
|
+
## The two sets
|
|
7
|
+
|
|
8
|
+
| Set | Languages | Rule |
|
|
9
|
+
|---|---|---|
|
|
10
|
+
| **Text (default)** | 40: en, ja, es, pt-BR, ko, zh-Hans, de, fr, vi, id, zh-Hant, it, ru, tr, pl, nl, th, uk, cs, sv, da, nb, fi, el, hu, ro, sk, hr, bg, ca, ms, fil, hi, bn, ta, ar, he, fa, ur, pt-PT | every product translates its text into all of them, minus what its renderer cannot show (below). |
|
|
11
|
+
| **Voice** | 10: en, ja, es, pt-BR, ko, zh-Hans, de, fr, vi, id | the default voice set, the languages a voice backend is expected to cover. Voice is made only for the languages **and** lines a product names ([voice.md](voice.md)) |
|
|
12
|
+
|
|
13
|
+
Codes are BCP-47: language, then script or region where it matters (`zh-Hans`, `zh-Hant`, `pt-BR`, `pt-PT`). Use
|
|
14
|
+
exactly these codes in folders, config, manifests, settings and on the wire. Legacy codes are mapped, never stored:
|
|
15
|
+
`jp`→`ja`, `iw`→`he`, `in`→`id`, `tl`→`fil`, `no`→`nb`, `zh-CN`→`zh-Hans`, `zh-TW`→`zh-Hant`.
|
|
16
|
+
|
|
17
|
+
A language outside the registry (a new market) is added in the project's `extraLanguages` with the same fields, or to
|
|
18
|
+
the registry itself when every product should get it. Take the plural forms from
|
|
19
|
+
`new Intl.PluralRules(code).resolvedOptions().pluralCategories`.
|
|
20
|
+
|
|
21
|
+
## What the renderer can show: `capabilities`
|
|
22
|
+
|
|
23
|
+
Some scripts need more than glyphs. A language that needs a capability the project has not declared is `blocked`: it
|
|
24
|
+
is not translated, not packed, not offered. Declaring a capability is a claim that was **tested with a screenshot**.
|
|
25
|
+
|
|
26
|
+
| Capability | Needed by | What it means |
|
|
27
|
+
|---|---|---|
|
|
28
|
+
| `rtl` | ar, he, fa, ur | right-to-left paragraphs, mirrored layout, bidirectional text with numbers and Latin words |
|
|
29
|
+
| `shaping` | ar, fa, ur, hi, bn, ta, th | letters join or reorder, marks stack (OpenType GSUB/GPOS). Without it the text is wrong, not just ugly |
|
|
30
|
+
|
|
31
|
+
| Platform | `capabilities` |
|
|
32
|
+
|---|---|
|
|
33
|
+
| Web (browser), Electron, native iOS/Android text, React Native, Flutter | `["rtl", "shaping"]`; RTL still needs the layout checked (`dir="rtl"`, logical CSS properties) |
|
|
34
|
+
| Unity uGUI legacy `Text`, TextMeshPro without a plugin | `[]` → 32 languages (the 8 above stay blocked) |
|
|
35
|
+
| Unity with a shaping solution (UI Toolkit's Advanced Text Generator in Unity 6, or an RTL/HarfBuzz plugin) | declare what a screenshot test of real sentences proves |
|
|
36
|
+
|
|
37
|
+
Fonts are a separate matter from shaping: CJK, Cyrillic, Greek and Thai glyphs must exist in a font the product ships
|
|
38
|
+
or can fall back to. Per script, the Noto family is the safe default (Noto Sans JP / KR / SC / TC / Thai / Devanagari /
|
|
39
|
+
Bengali / Tamil / Arabic / Hebrew; Latin, Greek and Cyrillic are in Noto Sans). See the platform file for how each
|
|
40
|
+
runtime loads them.
|
|
41
|
+
|
|
42
|
+
## When a language appears in the app
|
|
43
|
+
|
|
44
|
+
A language is offered only when its manifest entry says `status: "ready"`: every text is translated and current. A `partial` language is packed (so a user who already chose it keeps it
|
|
45
|
+
and gets fallbacks for the gaps) but is not listed for new users.
|
|
46
|
+
|
|
47
|
+
This is why translating belongs to the feature: adding one untranslated text turns 39 languages `partial`, and
|
|
48
|
+
`pack` refuses to write that regression.
|
|
49
|
+
|
|
50
|
+
## The language picker
|
|
51
|
+
|
|
52
|
+
- A searchable list (type-ahead), one row per ready language: **`<English name> (<native name>)`**, for example
|
|
53
|
+
`Japanese (日本語)`, `Vietnamese (Tiếng Việt)`. Both names come from the manifest.
|
|
54
|
+
- The search matches the English name, the native name and the code, ignoring case and accents: "tieng viet" finds
|
|
55
|
+
Tiếng Việt; "japan", "ja" and "日本" find Japanese.
|
|
56
|
+
- Order: the device's languages first, then the current one, then the rest by English name.
|
|
57
|
+
- Each row shows its state: in the app / downloaded / needs download with the size. Changing language applies
|
|
58
|
+
immediately, without a restart, and is saved.
|
|
59
|
+
- The control that opens the picker carries a globe icon and the word "Language" in the current language **and** in
|
|
60
|
+
English, so someone who landed in a language they cannot read finds the way back.
|
|
61
|
+
- Voice, where a product has it, is a second setting ("Voice: …") that lists only the voice languages that product
|
|
62
|
+
ships. It defaults to the text language when that has voice, else to the product's `voice.fallback`.
|
|
63
|
+
|
|
64
|
+
## The default language on first launch
|
|
65
|
+
|
|
66
|
+
1. Read the device's **ordered list** of preferred languages (iOS `Locale.preferredLanguages`, Android `LocaleList`,
|
|
67
|
+
browser `navigator.languages`). Unity's `Application.systemLanguage` gives one coarse value and cannot tell
|
|
68
|
+
`pt-BR` from `pt-PT` or `zh-Hans` from `zh-Hant`: use it only as the last resort.
|
|
69
|
+
2. For each device language in order, take the first ready language that matches by: exact code → `aliases` → same
|
|
70
|
+
language and script (`zh-Hant-HK` → `zh-Hant`) → same base language (`es-MX` → `es`, `fr-CA` → `fr`).
|
|
71
|
+
3. Nothing matched → `en`; no English → the source language.
|
|
72
|
+
4. Save the choice. From then on only the user changes it. An app update never changes a saved language.
|
|
73
|
+
|
|
74
|
+
Stores read the supported languages from the build: list the ready languages in iOS `CFBundleLocalizations` and
|
|
75
|
+
Android `locales_config` / `resConfigs`, so the store page and the per-app language setting show them.
|
|
76
|
+
|
|
77
|
+
## Fallback for a missing text
|
|
78
|
+
|
|
79
|
+
`active language → its fallback list → source language → the key`. The manifest's `fallback` list is the registry's
|
|
80
|
+
(`pt-PT → pt-BR`, `ca → es`) followed by `en` and the source language. Never fall back across unrelated languages
|
|
81
|
+
(Ukrainian does not fall back to Russian, Traditional Chinese does not fall back to Simplified).
|
|
82
|
+
|
|
83
|
+
## Plural forms per language
|
|
84
|
+
|
|
85
|
+
| Forms | Languages |
|
|
86
|
+
|---|---|
|
|
87
|
+
| other | ja, ko, zh-Hans, zh-Hant, vi, id, th, ms |
|
|
88
|
+
| one, other | en, de, nl, sv, da, nb, fi, el, hu, tr, bg, fil, hi, bn, ta, fa, ur |
|
|
89
|
+
| one, many, other | es, pt-BR, pt-PT, fr, it, ca (`many` is used for exact millions: give it the `other` wording) |
|
|
90
|
+
| one, few, other | ro, hr |
|
|
91
|
+
| one, few, many, other | ru, uk, pl, cs, sk |
|
|
92
|
+
| one, two, other | he |
|
|
93
|
+
| zero, one, two, few, many, other | ar |
|
|
94
|
+
|
|
95
|
+
On the web `Intl.PluralRules` picks the form. A runtime without it ports `plural_category()` from `scripts/i18n.py`
|
|
96
|
+
and tests itself against `assets/plural-vectors.json` (taken from ICU). "one" is not always the number 1: in French
|
|
97
|
+
and Brazilian Portuguese it is 0 and 1; in Russian it is 1, 21, 31…
|