@jean-is/render 0.8.0-rede3e4e8e9a5 → 0.10.0-rbdd0a4d699e2
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/brand.js +1 -1
- package/caps/charts/charts.js +16 -7
- package/caps/charts/option.js +17 -0
- package/caps/files/office.js +16 -9
- package/caps/files/pdf.js +9 -5
- package/caps/games/file.js +2 -0
- package/caps/games/page.js +21 -7
- package/caps/games/shell.js +8 -6
- package/caps/interactive/apps.js +2 -5
- package/caps/interactive/diagram.js +1 -1
- package/caps/interactive/interactive.css +4 -1
- package/caps/interactive/interactive.js +50 -11
- package/caps/interactive/live.js +4 -4
- package/caps/interactive/map.js +11 -5
- package/caps/interactive/starts.js +15 -0
- package/caps/interactive/test.js +76 -0
- package/caps/interactive/view-parts.js +5 -2
- package/caps/layouts/layouts.js +35 -34
- package/caps/layouts/shapes.js +49 -33
- package/caps/layouts/types.d.ts +8 -0
- package/caps/made/paper.js +26 -9
- package/caps/receipt/der.js +1 -1
- package/caps/scores/scores.js +24 -4
- package/caps/scores/sound.js +9 -8
- package/caps/share/view.js +2 -1
- package/caps/skills/directory.js +10 -3
- package/caps/slides/brand.js +249 -0
- package/caps/slides/edit.js +13 -5
- package/caps/slides/kit-page.css +2 -1
- package/caps/slides/kit-page.js +43 -13
- package/caps/slides/kit-sample.js +1 -1
- package/caps/slides/save.js +3 -3
- package/caps/slides/slides.css +3 -0
- package/caps/slides/slides.js +6 -5
- package/caps/tables/formula.js +1 -1
- package/core/anthropic.js +10 -10
- package/core/deferred.js +5 -4
- package/core/events.js +9 -8
- package/core/files.js +27 -3
- package/core/fs.js +22 -76
- package/core/hooks.js +3 -3
- package/core/i18n.js +22 -19
- package/core/llm.js +16 -13
- package/core/loop.js +17 -5
- package/core/rules.js +1 -1
- package/core/settings.js +7 -59
- package/core/skills.js +1 -1
- package/core/vertex.js +1 -1
- package/core/zip.js +1 -1
- package/locales/am.json +38 -21
- package/locales/approvals/am.json +0 -2
- package/locales/approvals/ar.json +0 -2
- package/locales/approvals/bg.json +0 -2
- package/locales/approvals/bn.json +0 -2
- package/locales/approvals/br.json +7 -9
- package/locales/approvals/co.json +18 -20
- package/locales/approvals/cs.json +0 -2
- package/locales/approvals/da.json +0 -2
- package/locales/approvals/de.json +5 -7
- package/locales/approvals/el.json +0 -2
- package/locales/approvals/en.json +3 -5
- package/locales/approvals/es.json +7 -9
- package/locales/approvals/fa.json +0 -2
- package/locales/approvals/fi.json +0 -2
- package/locales/approvals/fr-CA.json +7 -9
- package/locales/approvals/fr.json +7 -9
- package/locales/approvals/ha.json +0 -2
- package/locales/approvals/he.json +0 -2
- package/locales/approvals/hi.json +0 -2
- package/locales/approvals/hr.json +0 -2
- package/locales/approvals/hu.json +0 -2
- package/locales/approvals/id.json +0 -2
- package/locales/approvals/it.json +10 -12
- package/locales/approvals/ja.json +8 -10
- package/locales/approvals/ko.json +21 -23
- package/locales/approvals/mr.json +0 -2
- package/locales/approvals/ms.json +0 -2
- package/locales/approvals/nl.json +0 -2
- package/locales/approvals/pl.json +0 -2
- package/locales/approvals/pt.json +6 -8
- package/locales/approvals/ro.json +0 -2
- package/locales/approvals/ru.json +0 -2
- package/locales/approvals/sk.json +0 -2
- package/locales/approvals/sv.json +0 -2
- package/locales/approvals/sw.json +0 -2
- package/locales/approvals/ta.json +0 -2
- package/locales/approvals/te.json +0 -2
- package/locales/approvals/th.json +0 -2
- package/locales/approvals/tl.json +0 -2
- package/locales/approvals/tr.json +0 -2
- package/locales/approvals/uk.json +0 -2
- package/locales/approvals/ur.json +0 -2
- package/locales/approvals/vi.json +0 -2
- package/locales/approvals/yo.json +0 -2
- package/locales/approvals/zh-Hans.json +5 -7
- package/locales/approvals/zh-Hant.json +4 -6
- package/locales/ar.json +38 -21
- package/locales/backup/de.json +1 -1
- package/locales/backup/ko.json +1 -1
- package/locales/backup/pt.json +1 -1
- package/locales/backup/zh-Hans.json +1 -1
- package/locales/bg.json +38 -21
- package/locales/bn.json +37 -20
- package/locales/br.json +64 -47
- package/locales/brain-local/ja.json +1 -1
- package/locales/brain-local/pt.json +3 -3
- package/locales/brain-local/zh-Hans.json +1 -1
- package/locales/brain-local/zh-Hant.json +3 -3
- package/locales/brains/am.json +2 -1
- package/locales/brains/ar.json +2 -1
- package/locales/brains/bg.json +2 -1
- package/locales/brains/bn.json +2 -1
- package/locales/brains/br.json +11 -10
- package/locales/brains/co.json +13 -12
- package/locales/brains/cs.json +2 -1
- package/locales/brains/da.json +2 -1
- package/locales/brains/de.json +8 -7
- package/locales/brains/el.json +2 -1
- package/locales/brains/en.json +7 -6
- package/locales/brains/es.json +16 -15
- package/locales/brains/fa.json +2 -1
- package/locales/brains/fi.json +2 -1
- package/locales/brains/fr-CA.json +10 -9
- package/locales/brains/fr.json +9 -8
- package/locales/brains/ha.json +2 -1
- package/locales/brains/he.json +2 -1
- package/locales/brains/hi.json +2 -1
- package/locales/brains/hr.json +2 -1
- package/locales/brains/hu.json +2 -1
- package/locales/brains/id.json +2 -1
- package/locales/brains/it.json +9 -8
- package/locales/brains/ja.json +10 -9
- package/locales/brains/ko.json +14 -13
- package/locales/brains/mr.json +2 -1
- package/locales/brains/ms.json +2 -1
- package/locales/brains/nl.json +2 -1
- package/locales/brains/pl.json +2 -1
- package/locales/brains/pt.json +13 -12
- package/locales/brains/ro.json +2 -1
- package/locales/brains/ru.json +2 -1
- package/locales/brains/sk.json +2 -1
- package/locales/brains/sv.json +2 -1
- package/locales/brains/sw.json +2 -1
- package/locales/brains/ta.json +2 -1
- package/locales/brains/te.json +2 -1
- package/locales/brains/th.json +2 -1
- package/locales/brains/tl.json +2 -1
- package/locales/brains/tr.json +2 -1
- package/locales/brains/uk.json +2 -1
- package/locales/brains/ur.json +2 -1
- package/locales/brains/vi.json +2 -1
- package/locales/brains/yo.json +2 -1
- package/locales/brains/zh-Hans.json +8 -7
- package/locales/brains/zh-Hant.json +15 -14
- package/locales/browser/co.json +2 -2
- package/locales/browser/es.json +1 -1
- package/locales/browser/it.json +1 -1
- package/locales/browser/ja.json +2 -2
- package/locales/browser/ko.json +6 -6
- package/locales/browser/pt.json +2 -2
- package/locales/camera/br.json +1 -1
- package/locales/camera/co.json +1 -1
- package/locales/camera/de.json +1 -1
- package/locales/camera/it.json +1 -1
- package/locales/camera/ja.json +2 -2
- package/locales/camera/ko.json +2 -2
- package/locales/camera/zh-Hant.json +1 -1
- package/locales/case/br.json +1 -1
- package/locales/case/co.json +10 -10
- package/locales/case/de.json +1 -1
- package/locales/case/es.json +6 -6
- package/locales/case/fr-CA.json +9 -9
- package/locales/case/fr.json +9 -9
- package/locales/case/it.json +8 -8
- package/locales/case/ja.json +6 -6
- package/locales/case/ko.json +1 -1
- package/locales/case/pt.json +8 -8
- package/locales/case/zh-Hant.json +1 -1
- package/locales/certificates/co.json +7 -7
- package/locales/certificates/es.json +2 -2
- package/locales/certificates/fr-CA.json +7 -7
- package/locales/certificates/fr.json +7 -7
- package/locales/certificates/it.json +3 -3
- package/locales/certificates/ja.json +2 -2
- package/locales/certificates/ko.json +1 -1
- package/locales/certificates/pt.json +2 -2
- package/locales/certificates/zh-Hans.json +5 -5
- package/locales/certificates/zh-Hant.json +6 -6
- package/locales/charts/br.json +1 -1
- package/locales/charts/co.json +1 -1
- package/locales/charts/de.json +1 -1
- package/locales/charts/ko.json +1 -1
- package/locales/co.json +53 -36
- package/locales/compact/es.json +1 -1
- package/locales/compact/fr-CA.json +1 -1
- package/locales/compact/fr.json +1 -1
- package/locales/compact/it.json +1 -1
- package/locales/compact/pt.json +2 -2
- package/locales/computer/br.json +8 -8
- package/locales/computer/co.json +14 -14
- package/locales/computer/de.json +4 -4
- package/locales/computer/en.json +6 -6
- package/locales/computer/es.json +10 -10
- package/locales/computer/fr-CA.json +17 -17
- package/locales/computer/fr.json +17 -17
- package/locales/computer/it.json +9 -9
- package/locales/computer/ja.json +8 -8
- package/locales/computer/ko.json +14 -14
- package/locales/computer/pt.json +10 -10
- package/locales/computer/zh-Hans.json +8 -8
- package/locales/computer/zh-Hant.json +9 -9
- package/locales/connections/am.json +4 -2
- package/locales/connections/ar.json +4 -2
- package/locales/connections/bg.json +4 -2
- package/locales/connections/bn.json +4 -2
- package/locales/connections/br.json +5 -3
- package/locales/connections/co.json +17 -15
- package/locales/connections/cs.json +4 -2
- package/locales/connections/da.json +4 -2
- package/locales/connections/de.json +4 -2
- package/locales/connections/el.json +4 -2
- package/locales/connections/en.json +5 -3
- package/locales/connections/es.json +7 -5
- package/locales/connections/fa.json +4 -2
- package/locales/connections/fi.json +4 -2
- package/locales/connections/fr-CA.json +5 -3
- package/locales/connections/fr.json +5 -3
- package/locales/connections/ha.json +4 -2
- package/locales/connections/he.json +4 -2
- package/locales/connections/hi.json +4 -2
- package/locales/connections/hr.json +4 -2
- package/locales/connections/hu.json +4 -2
- package/locales/connections/id.json +4 -2
- package/locales/connections/it.json +13 -11
- package/locales/connections/ja.json +28 -26
- package/locales/connections/ko.json +7 -5
- package/locales/connections/mr.json +4 -2
- package/locales/connections/ms.json +4 -2
- package/locales/connections/nl.json +4 -2
- package/locales/connections/pl.json +4 -2
- package/locales/connections/pt.json +10 -8
- package/locales/connections/ro.json +4 -2
- package/locales/connections/ru.json +4 -2
- package/locales/connections/sk.json +4 -2
- package/locales/connections/sv.json +4 -2
- package/locales/connections/sw.json +4 -2
- package/locales/connections/ta.json +4 -2
- package/locales/connections/te.json +4 -2
- package/locales/connections/th.json +4 -2
- package/locales/connections/tl.json +4 -2
- package/locales/connections/tr.json +4 -2
- package/locales/connections/uk.json +4 -2
- package/locales/connections/ur.json +4 -2
- package/locales/connections/vi.json +4 -2
- package/locales/connections/yo.json +4 -2
- package/locales/connections/zh-Hans.json +10 -8
- package/locales/connections/zh-Hant.json +23 -21
- package/locales/creations/am.json +8 -0
- package/locales/creations/ar.json +8 -0
- package/locales/creations/bg.json +8 -0
- package/locales/creations/bn.json +8 -0
- package/locales/creations/br.json +22 -14
- package/locales/creations/co.json +19 -11
- package/locales/creations/cs.json +8 -0
- package/locales/creations/da.json +8 -0
- package/locales/creations/de.json +9 -1
- package/locales/creations/el.json +8 -0
- package/locales/creations/en.json +9 -1
- package/locales/creations/es.json +17 -9
- package/locales/creations/fa.json +8 -0
- package/locales/creations/fi.json +8 -0
- package/locales/creations/fr-CA.json +9 -1
- package/locales/creations/fr.json +17 -9
- package/locales/creations/ha.json +8 -0
- package/locales/creations/he.json +8 -0
- package/locales/creations/hi.json +8 -0
- package/locales/creations/hr.json +8 -0
- package/locales/creations/hu.json +8 -0
- package/locales/creations/id.json +8 -0
- package/locales/creations/it.json +16 -8
- package/locales/creations/ja.json +9 -1
- package/locales/creations/ko.json +9 -1
- package/locales/creations/mr.json +8 -0
- package/locales/creations/ms.json +8 -0
- package/locales/creations/nl.json +8 -0
- package/locales/creations/pl.json +8 -0
- package/locales/creations/pt.json +16 -8
- package/locales/creations/ro.json +8 -0
- package/locales/creations/ru.json +8 -0
- package/locales/creations/sk.json +8 -0
- package/locales/creations/sv.json +8 -0
- package/locales/creations/sw.json +8 -0
- package/locales/creations/ta.json +8 -0
- package/locales/creations/te.json +8 -0
- package/locales/creations/th.json +8 -0
- package/locales/creations/tl.json +8 -0
- package/locales/creations/tr.json +8 -0
- package/locales/creations/uk.json +8 -0
- package/locales/creations/ur.json +8 -0
- package/locales/creations/vi.json +8 -0
- package/locales/creations/yo.json +8 -0
- package/locales/creations/zh-Hans.json +9 -1
- package/locales/creations/zh-Hant.json +9 -1
- package/locales/cs.json +38 -21
- package/locales/da.json +37 -20
- package/locales/data/am.json +12 -1
- package/locales/data/ar.json +12 -1
- package/locales/data/bg.json +12 -1
- package/locales/data/bn.json +12 -1
- package/locales/data/br.json +14 -3
- package/locales/data/co.json +15 -4
- package/locales/data/cs.json +12 -1
- package/locales/data/da.json +12 -1
- package/locales/data/de.json +12 -1
- package/locales/data/el.json +12 -1
- package/locales/data/en.json +12 -1
- package/locales/data/es.json +16 -5
- package/locales/data/fa.json +12 -1
- package/locales/data/fi.json +12 -1
- package/locales/data/fr-CA.json +12 -1
- package/locales/data/fr.json +12 -1
- package/locales/data/ha.json +12 -1
- package/locales/data/he.json +12 -1
- package/locales/data/hi.json +12 -1
- package/locales/data/hr.json +12 -1
- package/locales/data/hu.json +12 -1
- package/locales/data/id.json +12 -1
- package/locales/data/it.json +13 -2
- package/locales/data/ja.json +20 -9
- package/locales/data/ko.json +14 -3
- package/locales/data/mr.json +12 -1
- package/locales/data/ms.json +12 -1
- package/locales/data/nl.json +12 -1
- package/locales/data/pl.json +12 -1
- package/locales/data/pt.json +17 -6
- package/locales/data/ro.json +12 -1
- package/locales/data/ru.json +12 -1
- package/locales/data/sk.json +12 -1
- package/locales/data/sv.json +12 -1
- package/locales/data/sw.json +12 -1
- package/locales/data/ta.json +12 -1
- package/locales/data/te.json +12 -1
- package/locales/data/th.json +12 -1
- package/locales/data/tl.json +12 -1
- package/locales/data/tr.json +12 -1
- package/locales/data/uk.json +12 -1
- package/locales/data/ur.json +12 -1
- package/locales/data/vi.json +12 -1
- package/locales/data/yo.json +12 -1
- package/locales/data/zh-Hans.json +14 -3
- package/locales/data/zh-Hant.json +16 -5
- package/locales/de.json +52 -35
- package/locales/designs/br.json +9 -9
- package/locales/designs/co.json +8 -8
- package/locales/designs/de.json +1 -1
- package/locales/designs/en.json +3 -3
- package/locales/designs/fr-CA.json +4 -4
- package/locales/designs/fr.json +5 -5
- package/locales/designs/it.json +6 -6
- package/locales/designs/ja.json +10 -10
- package/locales/designs/ko.json +6 -6
- package/locales/designs/pt.json +3 -3
- package/locales/designs/zh-Hans.json +1 -1
- package/locales/designs/zh-Hant.json +1 -1
- package/locales/devices/am.json +106 -0
- package/locales/devices/ar.json +118 -0
- package/locales/devices/bg.json +106 -0
- package/locales/devices/bn.json +106 -0
- package/locales/devices/br.json +115 -0
- package/locales/devices/co.json +109 -0
- package/locales/devices/cs.json +112 -0
- package/locales/devices/da.json +106 -0
- package/locales/devices/de.json +106 -0
- package/locales/devices/el.json +106 -0
- package/locales/devices/en.json +106 -0
- package/locales/devices/es.json +109 -0
- package/locales/devices/fa.json +106 -0
- package/locales/devices/fi.json +106 -0
- package/locales/devices/fr-CA.json +109 -0
- package/locales/devices/fr.json +109 -0
- package/locales/devices/ha.json +106 -0
- package/locales/devices/he.json +109 -0
- package/locales/devices/hi.json +106 -0
- package/locales/devices/hr.json +109 -0
- package/locales/devices/hu.json +106 -0
- package/locales/devices/id.json +103 -0
- package/locales/devices/it.json +109 -0
- package/locales/devices/ja.json +103 -0
- package/locales/devices/ko.json +103 -0
- package/locales/devices/mr.json +106 -0
- package/locales/devices/ms.json +103 -0
- package/locales/devices/nl.json +106 -0
- package/locales/devices/pl.json +112 -0
- package/locales/devices/pt.json +109 -0
- package/locales/devices/ro.json +109 -0
- package/locales/devices/ru.json +112 -0
- package/locales/devices/sk.json +112 -0
- package/locales/devices/sv.json +106 -0
- package/locales/devices/sw.json +106 -0
- package/locales/devices/ta.json +106 -0
- package/locales/devices/te.json +106 -0
- package/locales/devices/th.json +103 -0
- package/locales/devices/tl.json +106 -0
- package/locales/devices/tr.json +106 -0
- package/locales/devices/uk.json +112 -0
- package/locales/devices/ur.json +106 -0
- package/locales/devices/vi.json +103 -0
- package/locales/devices/yo.json +103 -0
- package/locales/devices/zh-Hans.json +103 -0
- package/locales/devices/zh-Hant.json +103 -0
- package/locales/dialogs/am.json +26 -11
- package/locales/dialogs/ar.json +26 -11
- package/locales/dialogs/bg.json +26 -11
- package/locales/dialogs/bn.json +26 -11
- package/locales/dialogs/br.json +45 -30
- package/locales/dialogs/co.json +47 -32
- package/locales/dialogs/cs.json +26 -11
- package/locales/dialogs/da.json +26 -11
- package/locales/dialogs/de.json +39 -24
- package/locales/dialogs/el.json +26 -11
- package/locales/dialogs/en.json +34 -19
- package/locales/dialogs/es.json +54 -39
- package/locales/dialogs/fa.json +26 -11
- package/locales/dialogs/fi.json +26 -11
- package/locales/dialogs/fr-CA.json +43 -28
- package/locales/dialogs/fr.json +43 -28
- package/locales/dialogs/ha.json +26 -11
- package/locales/dialogs/he.json +26 -11
- package/locales/dialogs/hi.json +26 -11
- package/locales/dialogs/hr.json +26 -11
- package/locales/dialogs/hu.json +26 -11
- package/locales/dialogs/id.json +26 -11
- package/locales/dialogs/it.json +48 -33
- package/locales/dialogs/ja.json +78 -63
- package/locales/dialogs/ko.json +49 -34
- package/locales/dialogs/mr.json +26 -11
- package/locales/dialogs/ms.json +26 -11
- package/locales/dialogs/nl.json +26 -11
- package/locales/dialogs/pl.json +26 -11
- package/locales/dialogs/pt.json +52 -37
- package/locales/dialogs/ro.json +26 -11
- package/locales/dialogs/ru.json +26 -11
- package/locales/dialogs/sk.json +26 -11
- package/locales/dialogs/sv.json +26 -11
- package/locales/dialogs/sw.json +26 -11
- package/locales/dialogs/ta.json +26 -11
- package/locales/dialogs/te.json +26 -11
- package/locales/dialogs/th.json +26 -11
- package/locales/dialogs/tl.json +26 -11
- package/locales/dialogs/tr.json +26 -11
- package/locales/dialogs/uk.json +26 -11
- package/locales/dialogs/ur.json +26 -11
- package/locales/dialogs/vi.json +26 -11
- package/locales/dialogs/yo.json +26 -11
- package/locales/dialogs/zh-Hans.json +47 -32
- package/locales/dialogs/zh-Hant.json +57 -42
- package/locales/documents/am.json +12 -2
- package/locales/documents/ar.json +12 -2
- package/locales/documents/bg.json +12 -2
- package/locales/documents/bn.json +12 -2
- package/locales/documents/br.json +12 -2
- package/locales/documents/co.json +15 -5
- package/locales/documents/cs.json +12 -2
- package/locales/documents/da.json +12 -2
- package/locales/documents/de.json +14 -4
- package/locales/documents/el.json +12 -2
- package/locales/documents/en.json +13 -3
- package/locales/documents/es.json +13 -3
- package/locales/documents/fa.json +12 -2
- package/locales/documents/fi.json +12 -2
- package/locales/documents/fr-CA.json +13 -3
- package/locales/documents/fr.json +13 -3
- package/locales/documents/ha.json +12 -2
- package/locales/documents/he.json +12 -2
- package/locales/documents/hi.json +12 -2
- package/locales/documents/hr.json +12 -2
- package/locales/documents/hu.json +12 -2
- package/locales/documents/id.json +12 -2
- package/locales/documents/it.json +13 -3
- package/locales/documents/ja.json +26 -16
- package/locales/documents/ko.json +14 -4
- package/locales/documents/mr.json +12 -2
- package/locales/documents/ms.json +12 -2
- package/locales/documents/nl.json +12 -2
- package/locales/documents/pl.json +12 -2
- package/locales/documents/pt.json +16 -6
- package/locales/documents/ro.json +12 -2
- package/locales/documents/ru.json +12 -2
- package/locales/documents/sk.json +12 -2
- package/locales/documents/sv.json +12 -2
- package/locales/documents/sw.json +12 -2
- package/locales/documents/ta.json +12 -2
- package/locales/documents/te.json +12 -2
- package/locales/documents/th.json +12 -2
- package/locales/documents/tl.json +12 -2
- package/locales/documents/tr.json +12 -2
- package/locales/documents/uk.json +12 -2
- package/locales/documents/ur.json +12 -2
- package/locales/documents/vi.json +12 -2
- package/locales/documents/yo.json +12 -2
- package/locales/documents/zh-Hans.json +14 -4
- package/locales/documents/zh-Hant.json +14 -4
- package/locales/el.json +38 -21
- package/locales/en.json +44 -27
- package/locales/enterprise/br.json +13 -13
- package/locales/enterprise/co.json +14 -14
- package/locales/enterprise/de.json +12 -12
- package/locales/enterprise/en.json +4 -4
- package/locales/enterprise/es.json +8 -8
- package/locales/enterprise/fr-CA.json +7 -7
- package/locales/enterprise/fr.json +11 -11
- package/locales/enterprise/it.json +9 -9
- package/locales/enterprise/ja.json +17 -17
- package/locales/enterprise/ko.json +12 -12
- package/locales/enterprise/pt.json +11 -11
- package/locales/enterprise/zh-Hans.json +22 -22
- package/locales/enterprise/zh-Hant.json +25 -25
- package/locales/es.json +52 -35
- package/locales/extensions/am.json +2 -1
- package/locales/extensions/ar.json +2 -1
- package/locales/extensions/bg.json +2 -1
- package/locales/extensions/bn.json +2 -1
- package/locales/extensions/br.json +12 -11
- package/locales/extensions/co.json +8 -7
- package/locales/extensions/cs.json +2 -1
- package/locales/extensions/da.json +2 -1
- package/locales/extensions/de.json +3 -2
- package/locales/extensions/el.json +2 -1
- package/locales/extensions/en.json +3 -2
- package/locales/extensions/es.json +4 -3
- package/locales/extensions/fa.json +2 -1
- package/locales/extensions/fi.json +2 -1
- package/locales/extensions/fr-CA.json +7 -6
- package/locales/extensions/fr.json +7 -6
- package/locales/extensions/ha.json +2 -1
- package/locales/extensions/he.json +2 -1
- package/locales/extensions/hi.json +2 -1
- package/locales/extensions/hr.json +2 -1
- package/locales/extensions/hu.json +2 -1
- package/locales/extensions/id.json +2 -1
- package/locales/extensions/it.json +5 -4
- package/locales/extensions/ja.json +7 -6
- package/locales/extensions/ko.json +24 -23
- package/locales/extensions/mr.json +2 -1
- package/locales/extensions/ms.json +2 -1
- package/locales/extensions/nl.json +2 -1
- package/locales/extensions/pl.json +2 -1
- package/locales/extensions/pt.json +5 -4
- package/locales/extensions/ro.json +2 -1
- package/locales/extensions/ru.json +2 -1
- package/locales/extensions/sk.json +2 -1
- package/locales/extensions/sv.json +2 -1
- package/locales/extensions/sw.json +2 -1
- package/locales/extensions/ta.json +2 -1
- package/locales/extensions/te.json +2 -1
- package/locales/extensions/th.json +2 -1
- package/locales/extensions/tl.json +2 -1
- package/locales/extensions/tr.json +2 -1
- package/locales/extensions/uk.json +2 -1
- package/locales/extensions/ur.json +2 -1
- package/locales/extensions/vi.json +2 -1
- package/locales/extensions/yo.json +2 -1
- package/locales/extensions/zh-Hans.json +5 -4
- package/locales/extensions/zh-Hant.json +9 -8
- package/locales/fa.json +37 -20
- package/locales/feedback/am.json +7 -0
- package/locales/feedback/ar.json +7 -0
- package/locales/feedback/bg.json +7 -0
- package/locales/feedback/bn.json +7 -0
- package/locales/feedback/br.json +7 -0
- package/locales/feedback/co.json +7 -0
- package/locales/feedback/cs.json +7 -0
- package/locales/feedback/da.json +7 -0
- package/locales/feedback/de.json +7 -0
- package/locales/feedback/el.json +7 -0
- package/locales/feedback/en.json +7 -0
- package/locales/feedback/es.json +7 -0
- package/locales/feedback/fa.json +7 -0
- package/locales/feedback/fi.json +7 -0
- package/locales/feedback/fr-CA.json +7 -0
- package/locales/feedback/fr.json +7 -0
- package/locales/feedback/ha.json +7 -0
- package/locales/feedback/he.json +7 -0
- package/locales/feedback/hi.json +7 -0
- package/locales/feedback/hr.json +7 -0
- package/locales/feedback/hu.json +7 -0
- package/locales/feedback/id.json +7 -0
- package/locales/feedback/it.json +7 -0
- package/locales/feedback/ja.json +7 -0
- package/locales/feedback/ko.json +7 -0
- package/locales/feedback/mr.json +7 -0
- package/locales/feedback/ms.json +7 -0
- package/locales/feedback/nl.json +7 -0
- package/locales/feedback/pl.json +7 -0
- package/locales/feedback/pt.json +7 -0
- package/locales/feedback/ro.json +7 -0
- package/locales/feedback/ru.json +7 -0
- package/locales/feedback/sk.json +7 -0
- package/locales/feedback/sv.json +7 -0
- package/locales/feedback/sw.json +7 -0
- package/locales/feedback/ta.json +7 -0
- package/locales/feedback/te.json +7 -0
- package/locales/feedback/th.json +7 -0
- package/locales/feedback/tl.json +7 -0
- package/locales/feedback/tr.json +7 -0
- package/locales/feedback/uk.json +7 -0
- package/locales/feedback/ur.json +7 -0
- package/locales/feedback/vi.json +7 -0
- package/locales/feedback/yo.json +7 -0
- package/locales/feedback/zh-Hans.json +7 -0
- package/locales/feedback/zh-Hant.json +7 -0
- package/locales/fi.json +38 -21
- package/locales/files/am.json +11 -0
- package/locales/files/ar.json +11 -0
- package/locales/files/bg.json +11 -0
- package/locales/files/bn.json +11 -0
- package/locales/files/br.json +11 -0
- package/locales/files/co.json +11 -0
- package/locales/files/cs.json +11 -0
- package/locales/files/da.json +11 -0
- package/locales/files/de.json +11 -0
- package/locales/files/el.json +11 -0
- package/locales/files/en.json +11 -0
- package/locales/files/es.json +11 -0
- package/locales/files/fa.json +11 -0
- package/locales/files/fi.json +11 -0
- package/locales/files/fr-CA.json +11 -0
- package/locales/files/fr.json +11 -0
- package/locales/files/ha.json +11 -0
- package/locales/files/he.json +11 -0
- package/locales/files/hi.json +11 -0
- package/locales/files/hr.json +11 -0
- package/locales/files/hu.json +11 -0
- package/locales/files/id.json +11 -0
- package/locales/files/it.json +11 -0
- package/locales/files/ja.json +11 -0
- package/locales/files/ko.json +11 -0
- package/locales/files/mr.json +11 -0
- package/locales/files/ms.json +11 -0
- package/locales/files/nl.json +11 -0
- package/locales/files/pl.json +11 -0
- package/locales/files/pt.json +11 -0
- package/locales/files/ro.json +11 -0
- package/locales/files/ru.json +11 -0
- package/locales/files/sk.json +11 -0
- package/locales/files/sv.json +11 -0
- package/locales/files/sw.json +11 -0
- package/locales/files/ta.json +11 -0
- package/locales/files/te.json +11 -0
- package/locales/files/th.json +11 -0
- package/locales/files/tl.json +11 -0
- package/locales/files/tr.json +11 -0
- package/locales/files/uk.json +11 -0
- package/locales/files/ur.json +11 -0
- package/locales/files/vi.json +11 -0
- package/locales/files/yo.json +11 -0
- package/locales/files/zh-Hans.json +11 -0
- package/locales/files/zh-Hant.json +11 -0
- package/locales/first/br.json +5 -5
- package/locales/first/co.json +1 -1
- package/locales/first/es.json +4 -4
- package/locales/first/fr-CA.json +1 -1
- package/locales/first/fr.json +1 -1
- package/locales/first/it.json +1 -1
- package/locales/first/ja.json +7 -7
- package/locales/first/ko.json +3 -3
- package/locales/first/pt.json +3 -3
- package/locales/first/zh-Hans.json +2 -2
- package/locales/first/zh-Hant.json +3 -3
- package/locales/flows/am.json +3 -0
- package/locales/flows/ar.json +3 -0
- package/locales/flows/bg.json +3 -0
- package/locales/flows/bn.json +3 -0
- package/locales/flows/br.json +10 -7
- package/locales/flows/co.json +7 -4
- package/locales/flows/cs.json +3 -0
- package/locales/flows/da.json +3 -0
- package/locales/flows/de.json +5 -2
- package/locales/flows/el.json +3 -0
- package/locales/flows/en.json +3 -0
- package/locales/flows/es.json +5 -2
- package/locales/flows/fa.json +3 -0
- package/locales/flows/fi.json +3 -0
- package/locales/flows/fr-CA.json +6 -3
- package/locales/flows/fr.json +6 -3
- package/locales/flows/ha.json +3 -0
- package/locales/flows/he.json +3 -0
- package/locales/flows/hi.json +3 -0
- package/locales/flows/hr.json +3 -0
- package/locales/flows/hu.json +3 -0
- package/locales/flows/id.json +3 -0
- package/locales/flows/it.json +5 -2
- package/locales/flows/ja.json +7 -4
- package/locales/flows/ko.json +10 -7
- package/locales/flows/mr.json +3 -0
- package/locales/flows/ms.json +3 -0
- package/locales/flows/nl.json +3 -0
- package/locales/flows/pl.json +3 -0
- package/locales/flows/pt.json +9 -6
- package/locales/flows/ro.json +3 -0
- package/locales/flows/ru.json +3 -0
- package/locales/flows/sk.json +3 -0
- package/locales/flows/sv.json +3 -0
- package/locales/flows/sw.json +3 -0
- package/locales/flows/ta.json +3 -0
- package/locales/flows/te.json +3 -0
- package/locales/flows/th.json +3 -0
- package/locales/flows/tl.json +3 -0
- package/locales/flows/tr.json +3 -0
- package/locales/flows/uk.json +3 -0
- package/locales/flows/ur.json +3 -0
- package/locales/flows/vi.json +3 -0
- package/locales/flows/yo.json +3 -0
- package/locales/flows/zh-Hans.json +8 -5
- package/locales/flows/zh-Hant.json +11 -8
- package/locales/folders/br.json +4 -4
- package/locales/folders/de.json +1 -1
- package/locales/folders/es.json +2 -2
- package/locales/folders/ja.json +2 -2
- package/locales/folders/ko.json +3 -3
- package/locales/folders/pt.json +2 -2
- package/locales/folders/zh-Hans.json +2 -2
- package/locales/folders/zh-Hant.json +7 -7
- package/locales/fr-CA.json +71 -54
- package/locales/fr.json +68 -51
- package/locales/games/br.json +2 -2
- package/locales/ha.json +37 -20
- package/locales/he.json +37 -20
- package/locales/hi.json +37 -20
- package/locales/hr.json +38 -21
- package/locales/hu.json +37 -20
- package/locales/id.json +38 -21
- package/locales/interactive/br.json +8 -8
- package/locales/interactive/co.json +5 -5
- package/locales/interactive/es.json +1 -1
- package/locales/interactive/it.json +1 -1
- package/locales/interactive/ja.json +3 -3
- package/locales/interactive/ko.json +3 -3
- package/locales/interactive/pt.json +2 -2
- package/locales/interactive/zh-Hans.json +1 -1
- package/locales/interactive/zh-Hant.json +6 -6
- package/locales/it.json +75 -58
- package/locales/ja.json +67 -50
- package/locales/ko.json +61 -44
- package/locales/layouts/ja.json +1 -1
- package/locales/layouts/zh-Hans.json +1 -1
- package/locales/layouts/zh-Hant.json +1 -1
- package/locales/lock/br.json +3 -3
- package/locales/lock/co.json +4 -4
- package/locales/lock/de.json +4 -4
- package/locales/lock/en.json +1 -1
- package/locales/lock/es.json +1 -1
- package/locales/lock/fr-CA.json +3 -3
- package/locales/lock/fr.json +3 -3
- package/locales/lock/it.json +5 -5
- package/locales/lock/ja.json +6 -6
- package/locales/lock/ko.json +2 -2
- package/locales/lock/pt.json +1 -1
- package/locales/lock/zh-Hans.json +3 -3
- package/locales/lock/zh-Hant.json +3 -3
- package/locales/look/am.json +5 -1
- package/locales/look/ar.json +5 -1
- package/locales/look/bg.json +5 -1
- package/locales/look/bn.json +5 -1
- package/locales/look/br.json +14 -10
- package/locales/look/co.json +5 -1
- package/locales/look/cs.json +5 -1
- package/locales/look/da.json +5 -1
- package/locales/look/de.json +5 -1
- package/locales/look/el.json +5 -1
- package/locales/look/en.json +5 -1
- package/locales/look/es.json +7 -3
- package/locales/look/fa.json +5 -1
- package/locales/look/fi.json +5 -1
- package/locales/look/fr-CA.json +5 -1
- package/locales/look/fr.json +5 -1
- package/locales/look/ha.json +5 -1
- package/locales/look/he.json +5 -1
- package/locales/look/hi.json +5 -1
- package/locales/look/hr.json +5 -1
- package/locales/look/hu.json +5 -1
- package/locales/look/id.json +5 -1
- package/locales/look/it.json +5 -1
- package/locales/look/ja.json +11 -7
- package/locales/look/ko.json +6 -2
- package/locales/look/mr.json +5 -1
- package/locales/look/ms.json +5 -1
- package/locales/look/nl.json +5 -1
- package/locales/look/pl.json +5 -1
- package/locales/look/pt.json +7 -3
- package/locales/look/ro.json +5 -1
- package/locales/look/ru.json +5 -1
- package/locales/look/sk.json +5 -1
- package/locales/look/sv.json +5 -1
- package/locales/look/sw.json +5 -1
- package/locales/look/ta.json +5 -1
- package/locales/look/te.json +5 -1
- package/locales/look/th.json +5 -1
- package/locales/look/tl.json +5 -1
- package/locales/look/tr.json +5 -1
- package/locales/look/uk.json +5 -1
- package/locales/look/ur.json +5 -1
- package/locales/look/vi.json +5 -1
- package/locales/look/yo.json +5 -1
- package/locales/look/zh-Hans.json +10 -6
- package/locales/look/zh-Hant.json +15 -11
- package/locales/machine/br.json +5 -5
- package/locales/machine/co.json +4 -4
- package/locales/machine/de.json +2 -2
- package/locales/machine/en.json +2 -2
- package/locales/machine/es.json +8 -8
- package/locales/machine/fr-CA.json +4 -4
- package/locales/machine/fr.json +4 -4
- package/locales/machine/it.json +9 -9
- package/locales/machine/ja.json +4 -4
- package/locales/machine/ko.json +10 -10
- package/locales/machine/pt.json +4 -4
- package/locales/machine/zh-Hans.json +7 -7
- package/locales/machine/zh-Hant.json +10 -10
- package/locales/made/am.json +2 -4
- package/locales/made/ar.json +2 -4
- package/locales/made/bg.json +2 -4
- package/locales/made/bn.json +2 -4
- package/locales/made/br.json +4 -6
- package/locales/made/co.json +2 -4
- package/locales/made/cs.json +2 -4
- package/locales/made/da.json +2 -4
- package/locales/made/de.json +2 -4
- package/locales/made/el.json +2 -4
- package/locales/made/en.json +2 -4
- package/locales/made/es.json +2 -4
- package/locales/made/fa.json +2 -4
- package/locales/made/fi.json +2 -4
- package/locales/made/fr-CA.json +3 -5
- package/locales/made/fr.json +3 -5
- package/locales/made/ha.json +2 -4
- package/locales/made/he.json +2 -4
- package/locales/made/hi.json +2 -4
- package/locales/made/hr.json +2 -4
- package/locales/made/hu.json +2 -4
- package/locales/made/id.json +2 -4
- package/locales/made/it.json +2 -4
- package/locales/made/ja.json +2 -4
- package/locales/made/ko.json +3 -5
- package/locales/made/mr.json +2 -4
- package/locales/made/ms.json +2 -4
- package/locales/made/nl.json +2 -4
- package/locales/made/pl.json +2 -4
- package/locales/made/pt.json +4 -6
- package/locales/made/ro.json +2 -4
- package/locales/made/ru.json +2 -4
- package/locales/made/sk.json +2 -4
- package/locales/made/sv.json +2 -4
- package/locales/made/sw.json +2 -4
- package/locales/made/ta.json +2 -4
- package/locales/made/te.json +2 -4
- package/locales/made/th.json +2 -4
- package/locales/made/tl.json +2 -4
- package/locales/made/tr.json +2 -4
- package/locales/made/uk.json +2 -4
- package/locales/made/ur.json +2 -4
- package/locales/made/vi.json +2 -4
- package/locales/made/yo.json +2 -4
- package/locales/made/zh-Hans.json +4 -6
- package/locales/made/zh-Hant.json +3 -5
- package/locales/mr.json +37 -20
- package/locales/ms.json +38 -21
- package/locales/{reader → natural-voice}/es.json +1 -1
- package/locales/natural-voice/ja.json +9 -0
- package/locales/{reader → natural-voice}/zh-Hans.json +1 -1
- package/locales/{reader → natural-voice}/zh-Hant.json +2 -2
- package/locales/nl.json +38 -21
- package/locales/notifications/br.json +2 -2
- package/locales/notifications/es.json +4 -4
- package/locales/notifications/it.json +2 -2
- package/locales/notifications/pt.json +2 -2
- package/locales/notifications/zh-Hans.json +1 -1
- package/locales/notifications/zh-Hant.json +2 -2
- package/locales/out/am.json +2 -1
- package/locales/out/ar.json +2 -1
- package/locales/out/bg.json +2 -1
- package/locales/out/bn.json +2 -1
- package/locales/out/br.json +2 -1
- package/locales/out/co.json +3 -2
- package/locales/out/cs.json +2 -1
- package/locales/out/da.json +2 -1
- package/locales/out/de.json +3 -2
- package/locales/out/el.json +2 -1
- package/locales/out/en.json +2 -1
- package/locales/out/es.json +3 -2
- package/locales/out/fa.json +2 -1
- package/locales/out/fi.json +2 -1
- package/locales/out/fr-CA.json +3 -2
- package/locales/out/fr.json +3 -2
- package/locales/out/ha.json +2 -1
- package/locales/out/he.json +2 -1
- package/locales/out/hi.json +2 -1
- package/locales/out/hr.json +2 -1
- package/locales/out/hu.json +2 -1
- package/locales/out/id.json +2 -1
- package/locales/out/it.json +2 -1
- package/locales/out/ja.json +3 -2
- package/locales/out/ko.json +2 -1
- package/locales/out/mr.json +2 -1
- package/locales/out/ms.json +2 -1
- package/locales/out/nl.json +2 -1
- package/locales/out/pl.json +2 -1
- package/locales/out/pt.json +3 -2
- package/locales/out/ro.json +2 -1
- package/locales/out/ru.json +2 -1
- package/locales/out/sk.json +2 -1
- package/locales/out/sv.json +2 -1
- package/locales/out/sw.json +2 -1
- package/locales/out/ta.json +2 -1
- package/locales/out/te.json +2 -1
- package/locales/out/th.json +2 -1
- package/locales/out/tl.json +2 -1
- package/locales/out/tr.json +2 -1
- package/locales/out/uk.json +2 -1
- package/locales/out/ur.json +2 -1
- package/locales/out/vi.json +2 -1
- package/locales/out/yo.json +2 -1
- package/locales/out/zh-Hans.json +4 -3
- package/locales/out/zh-Hant.json +2 -1
- package/locales/people/am.json +94 -0
- package/locales/people/ar.json +102 -0
- package/locales/people/bg.json +94 -0
- package/locales/people/bn.json +94 -0
- package/locales/people/br.json +100 -0
- package/locales/people/co.json +96 -0
- package/locales/people/cs.json +98 -0
- package/locales/people/da.json +94 -0
- package/locales/people/de.json +94 -0
- package/locales/people/el.json +94 -0
- package/locales/people/en.json +94 -0
- package/locales/people/es.json +96 -0
- package/locales/people/fa.json +94 -0
- package/locales/people/fi.json +94 -0
- package/locales/people/fr-CA.json +96 -0
- package/locales/people/fr.json +96 -0
- package/locales/people/ha.json +94 -0
- package/locales/people/he.json +96 -0
- package/locales/people/hi.json +94 -0
- package/locales/people/hr.json +96 -0
- package/locales/people/hu.json +94 -0
- package/locales/people/id.json +92 -0
- package/locales/people/it.json +96 -0
- package/locales/people/ja.json +92 -0
- package/locales/people/ko.json +92 -0
- package/locales/people/mr.json +94 -0
- package/locales/people/ms.json +92 -0
- package/locales/people/nl.json +94 -0
- package/locales/people/pl.json +98 -0
- package/locales/people/pt.json +96 -0
- package/locales/people/ro.json +96 -0
- package/locales/people/ru.json +98 -0
- package/locales/people/sk.json +98 -0
- package/locales/people/sv.json +94 -0
- package/locales/people/sw.json +94 -0
- package/locales/people/ta.json +94 -0
- package/locales/people/te.json +94 -0
- package/locales/people/th.json +92 -0
- package/locales/people/tl.json +94 -0
- package/locales/people/tr.json +94 -0
- package/locales/people/uk.json +98 -0
- package/locales/people/ur.json +94 -0
- package/locales/people/vi.json +92 -0
- package/locales/people/yo.json +92 -0
- package/locales/people/zh-Hans.json +92 -0
- package/locales/people/zh-Hant.json +92 -0
- package/locales/pictures/br.json +5 -5
- package/locales/pictures/co.json +5 -5
- package/locales/pictures/de.json +3 -3
- package/locales/pictures/en.json +2 -2
- package/locales/pictures/es.json +4 -4
- package/locales/pictures/fr-CA.json +6 -6
- package/locales/pictures/fr.json +4 -4
- package/locales/pictures/it.json +7 -7
- package/locales/pictures/ja.json +8 -8
- package/locales/pictures/ko.json +8 -8
- package/locales/pictures/pt.json +5 -5
- package/locales/pictures/zh-Hans.json +5 -5
- package/locales/pictures/zh-Hant.json +6 -6
- package/locales/pl.json +37 -20
- package/locales/plan/fr-CA.json +1 -1
- package/locales/plan/fr.json +1 -1
- package/locales/plan/it.json +2 -2
- package/locales/plan/ja.json +3 -3
- package/locales/plan/zh-Hans.json +2 -2
- package/locales/plan/zh-Hant.json +1 -1
- package/locales/policy/am.json +1 -0
- package/locales/policy/ar.json +1 -0
- package/locales/policy/bg.json +1 -0
- package/locales/policy/bn.json +1 -0
- package/locales/policy/br.json +1 -0
- package/locales/policy/co.json +3 -2
- package/locales/policy/cs.json +1 -0
- package/locales/policy/da.json +1 -0
- package/locales/policy/de.json +1 -0
- package/locales/policy/el.json +1 -0
- package/locales/policy/en.json +1 -0
- package/locales/policy/es.json +4 -3
- package/locales/policy/fa.json +1 -0
- package/locales/policy/fi.json +1 -0
- package/locales/policy/fr-CA.json +2 -1
- package/locales/policy/fr.json +2 -1
- package/locales/policy/ha.json +1 -0
- package/locales/policy/he.json +1 -0
- package/locales/policy/hi.json +1 -0
- package/locales/policy/hr.json +1 -0
- package/locales/policy/hu.json +1 -0
- package/locales/policy/id.json +1 -0
- package/locales/policy/it.json +4 -3
- package/locales/policy/ja.json +3 -2
- package/locales/policy/ko.json +1 -0
- package/locales/policy/mr.json +1 -0
- package/locales/policy/ms.json +1 -0
- package/locales/policy/nl.json +1 -0
- package/locales/policy/pl.json +1 -0
- package/locales/policy/pt.json +4 -3
- package/locales/policy/ro.json +1 -0
- package/locales/policy/ru.json +1 -0
- package/locales/policy/sk.json +1 -0
- package/locales/policy/sv.json +1 -0
- package/locales/policy/sw.json +1 -0
- package/locales/policy/ta.json +1 -0
- package/locales/policy/te.json +1 -0
- package/locales/policy/th.json +1 -0
- package/locales/policy/tl.json +1 -0
- package/locales/policy/tr.json +1 -0
- package/locales/policy/uk.json +1 -0
- package/locales/policy/ur.json +1 -0
- package/locales/policy/vi.json +1 -0
- package/locales/policy/yo.json +1 -0
- package/locales/policy/zh-Hans.json +9 -8
- package/locales/policy/zh-Hant.json +17 -16
- package/locales/profiles/am.json +4 -0
- package/locales/profiles/ar.json +8 -0
- package/locales/profiles/bg.json +4 -0
- package/locales/profiles/bn.json +4 -0
- package/locales/profiles/br.json +17 -10
- package/locales/profiles/co.json +14 -9
- package/locales/profiles/cs.json +6 -0
- package/locales/profiles/da.json +4 -0
- package/locales/profiles/de.json +5 -1
- package/locales/profiles/el.json +4 -0
- package/locales/profiles/en.json +6 -2
- package/locales/profiles/es.json +7 -2
- package/locales/profiles/fa.json +4 -0
- package/locales/profiles/fi.json +4 -0
- package/locales/profiles/fr-CA.json +13 -8
- package/locales/profiles/fr.json +13 -8
- package/locales/profiles/ha.json +4 -0
- package/locales/profiles/he.json +5 -0
- package/locales/profiles/hi.json +4 -0
- package/locales/profiles/hr.json +5 -0
- package/locales/profiles/hu.json +4 -0
- package/locales/profiles/id.json +3 -0
- package/locales/profiles/it.json +11 -6
- package/locales/profiles/ja.json +12 -9
- package/locales/profiles/ko.json +25 -22
- package/locales/profiles/mr.json +4 -0
- package/locales/profiles/ms.json +3 -0
- package/locales/profiles/nl.json +4 -0
- package/locales/profiles/pl.json +6 -0
- package/locales/profiles/pt.json +10 -5
- package/locales/profiles/ro.json +5 -0
- package/locales/profiles/ru.json +6 -0
- package/locales/profiles/sk.json +6 -0
- package/locales/profiles/sv.json +4 -0
- package/locales/profiles/sw.json +4 -0
- package/locales/profiles/ta.json +4 -0
- package/locales/profiles/te.json +4 -0
- package/locales/profiles/th.json +3 -0
- package/locales/profiles/tl.json +4 -0
- package/locales/profiles/tr.json +4 -0
- package/locales/profiles/uk.json +6 -0
- package/locales/profiles/ur.json +4 -0
- package/locales/profiles/vi.json +3 -0
- package/locales/profiles/yo.json +3 -0
- package/locales/profiles/zh-Hans.json +17 -14
- package/locales/profiles/zh-Hant.json +12 -9
- package/locales/projects/am.json +4 -0
- package/locales/projects/ar.json +4 -0
- package/locales/projects/bg.json +4 -0
- package/locales/projects/bn.json +4 -0
- package/locales/projects/br.json +4 -0
- package/locales/projects/co.json +4 -0
- package/locales/projects/cs.json +4 -0
- package/locales/projects/da.json +4 -0
- package/locales/projects/de.json +4 -0
- package/locales/projects/el.json +4 -0
- package/locales/projects/en.json +4 -0
- package/locales/projects/es.json +4 -0
- package/locales/projects/fa.json +4 -0
- package/locales/projects/fi.json +4 -0
- package/locales/projects/fr-CA.json +4 -0
- package/locales/projects/fr.json +4 -0
- package/locales/projects/ha.json +4 -0
- package/locales/projects/he.json +4 -0
- package/locales/projects/hi.json +4 -0
- package/locales/projects/hr.json +4 -0
- package/locales/projects/hu.json +4 -0
- package/locales/projects/id.json +4 -0
- package/locales/projects/it.json +4 -0
- package/locales/projects/ja.json +4 -0
- package/locales/projects/ko.json +4 -0
- package/locales/projects/mr.json +4 -0
- package/locales/projects/ms.json +4 -0
- package/locales/projects/nl.json +4 -0
- package/locales/projects/pl.json +4 -0
- package/locales/projects/pt.json +4 -0
- package/locales/projects/ro.json +4 -0
- package/locales/projects/ru.json +4 -0
- package/locales/projects/sk.json +4 -0
- package/locales/projects/sv.json +4 -0
- package/locales/projects/sw.json +4 -0
- package/locales/projects/ta.json +4 -0
- package/locales/projects/te.json +4 -0
- package/locales/projects/th.json +4 -0
- package/locales/projects/tl.json +4 -0
- package/locales/projects/tr.json +4 -0
- package/locales/projects/uk.json +4 -0
- package/locales/projects/ur.json +4 -0
- package/locales/projects/vi.json +4 -0
- package/locales/projects/yo.json +4 -0
- package/locales/projects/zh-Hans.json +4 -0
- package/locales/projects/zh-Hant.json +4 -0
- package/locales/prototypes/am.json +24 -0
- package/locales/prototypes/ar.json +24 -0
- package/locales/prototypes/bg.json +24 -0
- package/locales/prototypes/bn.json +24 -0
- package/locales/prototypes/br.json +24 -0
- package/locales/prototypes/co.json +24 -0
- package/locales/prototypes/cs.json +24 -0
- package/locales/prototypes/da.json +24 -0
- package/locales/prototypes/de.json +24 -0
- package/locales/prototypes/el.json +24 -0
- package/locales/prototypes/en.json +24 -0
- package/locales/prototypes/es.json +24 -0
- package/locales/prototypes/fa.json +24 -0
- package/locales/prototypes/fi.json +24 -0
- package/locales/prototypes/fr-CA.json +24 -0
- package/locales/prototypes/fr.json +24 -0
- package/locales/prototypes/ha.json +24 -0
- package/locales/prototypes/he.json +24 -0
- package/locales/prototypes/hi.json +24 -0
- package/locales/prototypes/hr.json +24 -0
- package/locales/prototypes/hu.json +24 -0
- package/locales/prototypes/id.json +24 -0
- package/locales/prototypes/it.json +24 -0
- package/locales/prototypes/ja.json +24 -0
- package/locales/prototypes/ko.json +24 -0
- package/locales/prototypes/mr.json +24 -0
- package/locales/prototypes/ms.json +24 -0
- package/locales/prototypes/nl.json +24 -0
- package/locales/prototypes/pl.json +24 -0
- package/locales/prototypes/pt.json +24 -0
- package/locales/prototypes/ro.json +24 -0
- package/locales/prototypes/ru.json +24 -0
- package/locales/prototypes/sk.json +24 -0
- package/locales/prototypes/sv.json +24 -0
- package/locales/prototypes/sw.json +24 -0
- package/locales/prototypes/ta.json +24 -0
- package/locales/prototypes/te.json +24 -0
- package/locales/prototypes/th.json +24 -0
- package/locales/prototypes/tl.json +24 -0
- package/locales/prototypes/tr.json +24 -0
- package/locales/prototypes/uk.json +24 -0
- package/locales/prototypes/ur.json +24 -0
- package/locales/prototypes/vi.json +24 -0
- package/locales/prototypes/yo.json +24 -0
- package/locales/prototypes/zh-Hans.json +24 -0
- package/locales/prototypes/zh-Hant.json +24 -0
- package/locales/pt.json +64 -47
- package/locales/receipt/am.json +14 -2
- package/locales/receipt/ar.json +14 -2
- package/locales/receipt/bg.json +14 -2
- package/locales/receipt/bn.json +14 -2
- package/locales/receipt/br.json +16 -4
- package/locales/receipt/co.json +16 -4
- package/locales/receipt/cs.json +14 -2
- package/locales/receipt/da.json +14 -2
- package/locales/receipt/de.json +16 -4
- package/locales/receipt/el.json +14 -2
- package/locales/receipt/en.json +16 -4
- package/locales/receipt/es.json +19 -7
- package/locales/receipt/fa.json +14 -2
- package/locales/receipt/fi.json +14 -2
- package/locales/receipt/fr-CA.json +16 -4
- package/locales/receipt/fr.json +16 -4
- package/locales/receipt/ha.json +14 -2
- package/locales/receipt/he.json +14 -2
- package/locales/receipt/hi.json +14 -2
- package/locales/receipt/hr.json +14 -2
- package/locales/receipt/hu.json +14 -2
- package/locales/receipt/id.json +14 -2
- package/locales/receipt/it.json +21 -9
- package/locales/receipt/ja.json +18 -6
- package/locales/receipt/ko.json +15 -3
- package/locales/receipt/mr.json +14 -2
- package/locales/receipt/ms.json +14 -2
- package/locales/receipt/nl.json +14 -2
- package/locales/receipt/pl.json +14 -2
- package/locales/receipt/pt.json +18 -6
- package/locales/receipt/ro.json +14 -2
- package/locales/receipt/ru.json +14 -2
- package/locales/receipt/sk.json +14 -2
- package/locales/receipt/sv.json +14 -2
- package/locales/receipt/sw.json +14 -2
- package/locales/receipt/ta.json +14 -2
- package/locales/receipt/te.json +14 -2
- package/locales/receipt/th.json +14 -2
- package/locales/receipt/tl.json +14 -2
- package/locales/receipt/tr.json +14 -2
- package/locales/receipt/uk.json +14 -2
- package/locales/receipt/ur.json +14 -2
- package/locales/receipt/vi.json +14 -2
- package/locales/receipt/yo.json +14 -2
- package/locales/receipt/zh-Hans.json +17 -5
- package/locales/receipt/zh-Hant.json +25 -13
- package/locales/ro.json +38 -21
- package/locales/routines/am.json +2 -0
- package/locales/routines/ar.json +2 -0
- package/locales/routines/bg.json +2 -0
- package/locales/routines/bn.json +2 -0
- package/locales/routines/br.json +12 -10
- package/locales/routines/co.json +8 -6
- package/locales/routines/cs.json +2 -0
- package/locales/routines/da.json +2 -0
- package/locales/routines/de.json +2 -0
- package/locales/routines/el.json +2 -0
- package/locales/routines/en.json +2 -0
- package/locales/routines/es.json +6 -4
- package/locales/routines/fa.json +2 -0
- package/locales/routines/fi.json +2 -0
- package/locales/routines/fr-CA.json +4 -2
- package/locales/routines/fr.json +4 -2
- package/locales/routines/ha.json +2 -0
- package/locales/routines/he.json +2 -0
- package/locales/routines/hi.json +2 -0
- package/locales/routines/hr.json +2 -0
- package/locales/routines/hu.json +2 -0
- package/locales/routines/id.json +2 -0
- package/locales/routines/it.json +3 -1
- package/locales/routines/ja.json +14 -12
- package/locales/routines/ko.json +3 -1
- package/locales/routines/mr.json +2 -0
- package/locales/routines/ms.json +2 -0
- package/locales/routines/nl.json +2 -0
- package/locales/routines/pl.json +2 -0
- package/locales/routines/pt.json +7 -5
- package/locales/routines/ro.json +2 -0
- package/locales/routines/ru.json +2 -0
- package/locales/routines/sk.json +2 -0
- package/locales/routines/sv.json +2 -0
- package/locales/routines/sw.json +2 -0
- package/locales/routines/ta.json +2 -0
- package/locales/routines/te.json +2 -0
- package/locales/routines/th.json +2 -0
- package/locales/routines/tl.json +2 -0
- package/locales/routines/tr.json +2 -0
- package/locales/routines/uk.json +2 -0
- package/locales/routines/ur.json +2 -0
- package/locales/routines/vi.json +2 -0
- package/locales/routines/yo.json +2 -0
- package/locales/routines/zh-Hans.json +4 -2
- package/locales/routines/zh-Hant.json +5 -3
- package/locales/ru.json +37 -20
- package/locales/scores/de.json +1 -1
- package/locales/scores/it.json +1 -1
- package/locales/scores/ja.json +2 -2
- package/locales/scores/ko.json +1 -1
- package/locales/screen/am.json +11 -0
- package/locales/screen/ar.json +11 -0
- package/locales/screen/bg.json +11 -0
- package/locales/screen/bn.json +11 -0
- package/locales/screen/br.json +11 -0
- package/locales/screen/co.json +11 -0
- package/locales/screen/cs.json +11 -0
- package/locales/screen/da.json +11 -0
- package/locales/screen/de.json +11 -0
- package/locales/screen/el.json +11 -0
- package/locales/screen/en.json +11 -0
- package/locales/screen/es.json +11 -0
- package/locales/screen/fa.json +11 -0
- package/locales/screen/fi.json +11 -0
- package/locales/screen/fr-CA.json +11 -0
- package/locales/screen/fr.json +11 -0
- package/locales/screen/ha.json +11 -0
- package/locales/screen/he.json +11 -0
- package/locales/screen/hi.json +11 -0
- package/locales/screen/hr.json +11 -0
- package/locales/screen/hu.json +11 -0
- package/locales/screen/id.json +11 -0
- package/locales/screen/it.json +11 -0
- package/locales/screen/ja.json +11 -0
- package/locales/screen/ko.json +11 -0
- package/locales/screen/mr.json +11 -0
- package/locales/screen/ms.json +11 -0
- package/locales/screen/nl.json +11 -0
- package/locales/screen/pl.json +11 -0
- package/locales/screen/pt.json +11 -0
- package/locales/screen/ro.json +11 -0
- package/locales/screen/ru.json +11 -0
- package/locales/screen/sk.json +11 -0
- package/locales/screen/sv.json +11 -0
- package/locales/screen/sw.json +11 -0
- package/locales/screen/ta.json +11 -0
- package/locales/screen/te.json +11 -0
- package/locales/screen/th.json +11 -0
- package/locales/screen/tl.json +11 -0
- package/locales/screen/tr.json +11 -0
- package/locales/screen/uk.json +11 -0
- package/locales/screen/ur.json +11 -0
- package/locales/screen/vi.json +11 -0
- package/locales/screen/yo.json +11 -0
- package/locales/screen/zh-Hans.json +11 -0
- package/locales/screen/zh-Hant.json +11 -0
- package/locales/share/am.json +17 -9
- package/locales/share/ar.json +17 -9
- package/locales/share/bg.json +17 -9
- package/locales/share/bn.json +17 -9
- package/locales/share/br.json +22 -14
- package/locales/share/co.json +20 -12
- package/locales/share/cs.json +17 -9
- package/locales/share/da.json +17 -9
- package/locales/share/de.json +19 -11
- package/locales/share/el.json +17 -9
- package/locales/share/en.json +17 -9
- package/locales/share/es.json +18 -10
- package/locales/share/fa.json +17 -9
- package/locales/share/fi.json +17 -9
- package/locales/share/fr-CA.json +21 -13
- package/locales/share/fr.json +19 -11
- package/locales/share/ha.json +17 -9
- package/locales/share/he.json +17 -9
- package/locales/share/hi.json +17 -9
- package/locales/share/hr.json +17 -9
- package/locales/share/hu.json +17 -9
- package/locales/share/id.json +17 -9
- package/locales/share/it.json +21 -13
- package/locales/share/ja.json +31 -23
- package/locales/share/ko.json +21 -13
- package/locales/share/mr.json +17 -9
- package/locales/share/ms.json +17 -9
- package/locales/share/nl.json +17 -9
- package/locales/share/pl.json +17 -9
- package/locales/share/pt.json +19 -11
- package/locales/share/ro.json +17 -9
- package/locales/share/ru.json +17 -9
- package/locales/share/sk.json +17 -9
- package/locales/share/sv.json +17 -9
- package/locales/share/sw.json +17 -9
- package/locales/share/ta.json +17 -9
- package/locales/share/te.json +17 -9
- package/locales/share/th.json +17 -9
- package/locales/share/tl.json +17 -9
- package/locales/share/tr.json +17 -9
- package/locales/share/uk.json +17 -9
- package/locales/share/ur.json +17 -9
- package/locales/share/vi.json +17 -9
- package/locales/share/yo.json +17 -9
- package/locales/share/zh-Hans.json +24 -16
- package/locales/share/zh-Hant.json +30 -22
- package/locales/signin/br.json +1 -1
- package/locales/signin/co.json +1 -1
- package/locales/signin/es.json +1 -1
- package/locales/signin/ja.json +1 -1
- package/locales/signin/ko.json +2 -2
- package/locales/signin/pt.json +1 -1
- package/locales/signin/zh-Hans.json +1 -1
- package/locales/signin/zh-Hant.json +1 -1
- package/locales/sites/am.json +80 -0
- package/locales/sites/ar.json +84 -0
- package/locales/sites/bg.json +80 -0
- package/locales/sites/bn.json +80 -0
- package/locales/sites/br.json +83 -0
- package/locales/sites/co.json +81 -0
- package/locales/sites/cs.json +82 -0
- package/locales/sites/da.json +80 -0
- package/locales/sites/de.json +80 -0
- package/locales/sites/el.json +80 -0
- package/locales/sites/en.json +80 -0
- package/locales/sites/es.json +81 -0
- package/locales/sites/fa.json +80 -0
- package/locales/sites/fi.json +80 -0
- package/locales/sites/fr-CA.json +81 -0
- package/locales/sites/fr.json +81 -0
- package/locales/sites/ha.json +80 -0
- package/locales/sites/he.json +81 -0
- package/locales/sites/hi.json +80 -0
- package/locales/sites/hr.json +81 -0
- package/locales/sites/hu.json +80 -0
- package/locales/sites/id.json +79 -0
- package/locales/sites/it.json +81 -0
- package/locales/sites/ja.json +79 -0
- package/locales/sites/ko.json +79 -0
- package/locales/sites/mr.json +80 -0
- package/locales/sites/ms.json +79 -0
- package/locales/sites/nl.json +80 -0
- package/locales/sites/pl.json +82 -0
- package/locales/sites/pt.json +81 -0
- package/locales/sites/ro.json +81 -0
- package/locales/sites/ru.json +82 -0
- package/locales/sites/sk.json +82 -0
- package/locales/sites/sv.json +80 -0
- package/locales/sites/sw.json +80 -0
- package/locales/sites/ta.json +80 -0
- package/locales/sites/te.json +80 -0
- package/locales/sites/th.json +79 -0
- package/locales/sites/tl.json +80 -0
- package/locales/sites/tr.json +80 -0
- package/locales/sites/uk.json +82 -0
- package/locales/sites/ur.json +80 -0
- package/locales/sites/vi.json +79 -0
- package/locales/sites/yo.json +79 -0
- package/locales/sites/zh-Hans.json +79 -0
- package/locales/sites/zh-Hant.json +79 -0
- package/locales/sk.json +38 -21
- package/locales/skills/am.json +1 -0
- package/locales/skills/ar.json +1 -0
- package/locales/skills/bg.json +1 -0
- package/locales/skills/bn.json +1 -0
- package/locales/skills/br.json +8 -7
- package/locales/skills/co.json +8 -7
- package/locales/skills/cs.json +1 -0
- package/locales/skills/da.json +1 -0
- package/locales/skills/de.json +6 -5
- package/locales/skills/el.json +1 -0
- package/locales/skills/en.json +1 -0
- package/locales/skills/es.json +5 -4
- package/locales/skills/fa.json +1 -0
- package/locales/skills/fi.json +1 -0
- package/locales/skills/fr-CA.json +4 -3
- package/locales/skills/fr.json +4 -3
- package/locales/skills/ha.json +1 -0
- package/locales/skills/he.json +1 -0
- package/locales/skills/hi.json +1 -0
- package/locales/skills/hr.json +1 -0
- package/locales/skills/hu.json +1 -0
- package/locales/skills/id.json +1 -0
- package/locales/skills/it.json +2 -1
- package/locales/skills/ja.json +17 -16
- package/locales/skills/ko.json +2 -1
- package/locales/skills/mr.json +1 -0
- package/locales/skills/ms.json +1 -0
- package/locales/skills/nl.json +1 -0
- package/locales/skills/pl.json +1 -0
- package/locales/skills/pt.json +6 -5
- package/locales/skills/ro.json +1 -0
- package/locales/skills/ru.json +1 -0
- package/locales/skills/sk.json +1 -0
- package/locales/skills/sv.json +1 -0
- package/locales/skills/sw.json +1 -0
- package/locales/skills/ta.json +1 -0
- package/locales/skills/te.json +1 -0
- package/locales/skills/th.json +1 -0
- package/locales/skills/tl.json +1 -0
- package/locales/skills/tr.json +1 -0
- package/locales/skills/uk.json +1 -0
- package/locales/skills/ur.json +1 -0
- package/locales/skills/vi.json +1 -0
- package/locales/skills/yo.json +1 -0
- package/locales/skills/zh-Hans.json +3 -2
- package/locales/skills/zh-Hant.json +5 -4
- package/locales/slides/am.json +7 -0
- package/locales/slides/ar.json +7 -0
- package/locales/slides/bg.json +7 -0
- package/locales/slides/bn.json +7 -0
- package/locales/slides/br.json +18 -11
- package/locales/slides/co.json +35 -28
- package/locales/slides/cs.json +7 -0
- package/locales/slides/da.json +7 -0
- package/locales/slides/de.json +7 -0
- package/locales/slides/el.json +7 -0
- package/locales/slides/en.json +11 -4
- package/locales/slides/es.json +14 -7
- package/locales/slides/fa.json +7 -0
- package/locales/slides/fi.json +7 -0
- package/locales/slides/fr-CA.json +7 -0
- package/locales/slides/fr.json +7 -0
- package/locales/slides/ha.json +7 -0
- package/locales/slides/he.json +7 -0
- package/locales/slides/hi.json +7 -0
- package/locales/slides/hr.json +7 -0
- package/locales/slides/hu.json +7 -0
- package/locales/slides/id.json +7 -0
- package/locales/slides/it.json +13 -6
- package/locales/slides/ja.json +12 -5
- package/locales/slides/ko.json +21 -14
- package/locales/slides/mr.json +7 -0
- package/locales/slides/ms.json +7 -0
- package/locales/slides/nl.json +7 -0
- package/locales/slides/pl.json +7 -0
- package/locales/slides/pt.json +16 -9
- package/locales/slides/ro.json +7 -0
- package/locales/slides/ru.json +7 -0
- package/locales/slides/sk.json +7 -0
- package/locales/slides/sv.json +7 -0
- package/locales/slides/sw.json +7 -0
- package/locales/slides/ta.json +7 -0
- package/locales/slides/te.json +7 -0
- package/locales/slides/th.json +7 -0
- package/locales/slides/tl.json +7 -0
- package/locales/slides/tr.json +7 -0
- package/locales/slides/uk.json +7 -0
- package/locales/slides/ur.json +7 -0
- package/locales/slides/vi.json +7 -0
- package/locales/slides/yo.json +7 -0
- package/locales/slides/zh-Hans.json +11 -4
- package/locales/slides/zh-Hant.json +10 -3
- package/locales/starters/am.json +20 -0
- package/locales/starters/ar.json +20 -0
- package/locales/starters/bg.json +20 -0
- package/locales/starters/bn.json +20 -0
- package/locales/starters/br.json +20 -0
- package/locales/starters/co.json +20 -0
- package/locales/starters/cs.json +20 -0
- package/locales/starters/da.json +20 -0
- package/locales/starters/de.json +20 -0
- package/locales/starters/el.json +20 -0
- package/locales/starters/en.json +20 -0
- package/locales/starters/es.json +20 -0
- package/locales/starters/fa.json +20 -0
- package/locales/starters/fi.json +20 -0
- package/locales/starters/fr-CA.json +20 -0
- package/locales/starters/fr.json +20 -0
- package/locales/starters/ha.json +20 -0
- package/locales/starters/he.json +20 -0
- package/locales/starters/hi.json +20 -0
- package/locales/starters/hr.json +20 -0
- package/locales/starters/hu.json +20 -0
- package/locales/starters/id.json +20 -0
- package/locales/starters/it.json +20 -0
- package/locales/starters/ja.json +20 -0
- package/locales/starters/ko.json +20 -0
- package/locales/starters/mr.json +20 -0
- package/locales/starters/ms.json +20 -0
- package/locales/starters/nl.json +20 -0
- package/locales/starters/pl.json +20 -0
- package/locales/starters/pt.json +20 -0
- package/locales/starters/ro.json +20 -0
- package/locales/starters/ru.json +20 -0
- package/locales/starters/sk.json +20 -0
- package/locales/starters/sv.json +20 -0
- package/locales/starters/sw.json +20 -0
- package/locales/starters/ta.json +20 -0
- package/locales/starters/te.json +20 -0
- package/locales/starters/th.json +20 -0
- package/locales/starters/tl.json +20 -0
- package/locales/starters/tr.json +20 -0
- package/locales/starters/uk.json +20 -0
- package/locales/starters/ur.json +20 -0
- package/locales/starters/vi.json +20 -0
- package/locales/starters/yo.json +20 -0
- package/locales/starters/zh-Hans.json +20 -0
- package/locales/starters/zh-Hant.json +20 -0
- package/locales/sv.json +37 -20
- package/locales/sw.json +37 -20
- package/locales/sync/br.json +2 -2
- package/locales/sync/de.json +2 -2
- package/locales/sync/es.json +6 -6
- package/locales/sync/it.json +1 -1
- package/locales/sync/ja.json +2 -2
- package/locales/sync/pt.json +1 -1
- package/locales/ta.json +37 -20
- package/locales/tables/am.json +3 -0
- package/locales/tables/ar.json +3 -0
- package/locales/tables/bg.json +3 -0
- package/locales/tables/bn.json +3 -0
- package/locales/tables/br.json +11 -8
- package/locales/tables/co.json +18 -15
- package/locales/tables/cs.json +3 -0
- package/locales/tables/da.json +3 -0
- package/locales/tables/de.json +5 -2
- package/locales/tables/el.json +3 -0
- package/locales/tables/en.json +3 -0
- package/locales/tables/es.json +3 -0
- package/locales/tables/fa.json +3 -0
- package/locales/tables/fi.json +3 -0
- package/locales/tables/fr-CA.json +7 -4
- package/locales/tables/fr.json +6 -3
- package/locales/tables/ha.json +3 -0
- package/locales/tables/he.json +3 -0
- package/locales/tables/hi.json +3 -0
- package/locales/tables/hr.json +3 -0
- package/locales/tables/hu.json +3 -0
- package/locales/tables/id.json +3 -0
- package/locales/tables/it.json +3 -0
- package/locales/tables/ja.json +5 -2
- package/locales/tables/ko.json +7 -4
- package/locales/tables/mr.json +3 -0
- package/locales/tables/ms.json +3 -0
- package/locales/tables/nl.json +3 -0
- package/locales/tables/pl.json +3 -0
- package/locales/tables/pt.json +11 -8
- package/locales/tables/ro.json +3 -0
- package/locales/tables/ru.json +3 -0
- package/locales/tables/sk.json +3 -0
- package/locales/tables/sv.json +3 -0
- package/locales/tables/sw.json +3 -0
- package/locales/tables/ta.json +3 -0
- package/locales/tables/te.json +3 -0
- package/locales/tables/th.json +3 -0
- package/locales/tables/tl.json +3 -0
- package/locales/tables/tr.json +3 -0
- package/locales/tables/uk.json +3 -0
- package/locales/tables/ur.json +3 -0
- package/locales/tables/vi.json +3 -0
- package/locales/tables/yo.json +3 -0
- package/locales/tables/zh-Hans.json +4 -1
- package/locales/tables/zh-Hant.json +4 -1
- package/locales/te.json +37 -20
- package/locales/th.json +37 -20
- package/locales/tl.json +37 -20
- package/locales/together/am.json +56 -0
- package/locales/together/ar.json +56 -0
- package/locales/together/bg.json +56 -0
- package/locales/together/bn.json +56 -0
- package/locales/together/br.json +56 -0
- package/locales/together/co.json +56 -0
- package/locales/together/cs.json +56 -0
- package/locales/together/da.json +56 -0
- package/locales/together/de.json +56 -0
- package/locales/together/el.json +56 -0
- package/locales/together/en.json +56 -0
- package/locales/together/es.json +56 -0
- package/locales/together/fa.json +56 -0
- package/locales/together/fi.json +56 -0
- package/locales/together/fr-CA.json +56 -0
- package/locales/together/fr.json +56 -0
- package/locales/together/ha.json +56 -0
- package/locales/together/he.json +56 -0
- package/locales/together/hi.json +56 -0
- package/locales/together/hr.json +56 -0
- package/locales/together/hu.json +56 -0
- package/locales/together/id.json +56 -0
- package/locales/together/it.json +56 -0
- package/locales/together/ja.json +56 -0
- package/locales/together/ko.json +56 -0
- package/locales/together/mr.json +56 -0
- package/locales/together/ms.json +56 -0
- package/locales/together/nl.json +56 -0
- package/locales/together/pl.json +56 -0
- package/locales/together/pt.json +56 -0
- package/locales/together/ro.json +56 -0
- package/locales/together/ru.json +56 -0
- package/locales/together/sk.json +56 -0
- package/locales/together/sv.json +56 -0
- package/locales/together/sw.json +56 -0
- package/locales/together/ta.json +56 -0
- package/locales/together/te.json +56 -0
- package/locales/together/th.json +56 -0
- package/locales/together/tl.json +56 -0
- package/locales/together/tr.json +56 -0
- package/locales/together/uk.json +56 -0
- package/locales/together/ur.json +56 -0
- package/locales/together/vi.json +56 -0
- package/locales/together/yo.json +56 -0
- package/locales/together/zh-Hans.json +56 -0
- package/locales/together/zh-Hant.json +56 -0
- package/locales/tr.json +37 -20
- package/locales/uk.json +37 -20
- package/locales/ur.json +37 -20
- package/locales/vi.json +37 -20
- package/locales/{search → web-search}/am.json +1 -1
- package/locales/{search → web-search}/ar.json +1 -1
- package/locales/{search → web-search}/bg.json +1 -1
- package/locales/{search → web-search}/bn.json +1 -1
- package/locales/{search → web-search}/br.json +9 -9
- package/locales/{search → web-search}/co.json +8 -8
- package/locales/{search → web-search}/cs.json +1 -1
- package/locales/{search → web-search}/da.json +1 -1
- package/locales/{search → web-search}/de.json +2 -2
- package/locales/{search → web-search}/el.json +1 -1
- package/locales/{search → web-search}/en.json +1 -1
- package/locales/{search → web-search}/es.json +5 -5
- package/locales/{search → web-search}/fa.json +1 -1
- package/locales/{search → web-search}/fi.json +1 -1
- package/locales/{search → web-search}/fr-CA.json +2 -2
- package/locales/{search → web-search}/fr.json +2 -2
- package/locales/{search → web-search}/ha.json +1 -1
- package/locales/{search → web-search}/he.json +1 -1
- package/locales/{search → web-search}/hi.json +1 -1
- package/locales/{search → web-search}/hr.json +1 -1
- package/locales/{search → web-search}/hu.json +1 -1
- package/locales/{search → web-search}/id.json +1 -1
- package/locales/{search → web-search}/it.json +2 -2
- package/locales/{search → web-search}/ja.json +8 -8
- package/locales/{search → web-search}/ko.json +2 -2
- package/locales/{search → web-search}/mr.json +1 -1
- package/locales/{search → web-search}/ms.json +1 -1
- package/locales/{search → web-search}/nl.json +1 -1
- package/locales/{search → web-search}/pl.json +1 -1
- package/locales/{search → web-search}/pt.json +3 -3
- package/locales/{search → web-search}/ro.json +1 -1
- package/locales/{search → web-search}/ru.json +1 -1
- package/locales/{search → web-search}/sk.json +1 -1
- package/locales/{search → web-search}/sv.json +1 -1
- package/locales/{search → web-search}/sw.json +1 -1
- package/locales/{search → web-search}/ta.json +1 -1
- package/locales/{search → web-search}/te.json +1 -1
- package/locales/{search → web-search}/th.json +1 -1
- package/locales/{search → web-search}/tl.json +1 -1
- package/locales/{search → web-search}/tr.json +1 -1
- package/locales/{search → web-search}/uk.json +1 -1
- package/locales/{search → web-search}/ur.json +1 -1
- package/locales/{search → web-search}/vi.json +1 -1
- package/locales/{search → web-search}/yo.json +1 -1
- package/locales/{search → web-search}/zh-Hans.json +3 -3
- package/locales/{search → web-search}/zh-Hant.json +19 -19
- package/locales/yo.json +37 -20
- package/locales/you/br.json +13 -13
- package/locales/you/co.json +2 -2
- package/locales/you/de.json +1 -1
- package/locales/you/en.json +1 -1
- package/locales/you/es.json +2 -2
- package/locales/you/fr-CA.json +3 -3
- package/locales/you/fr.json +3 -3
- package/locales/you/it.json +10 -10
- package/locales/you/ja.json +9 -9
- package/locales/you/pt.json +11 -11
- package/locales/you/zh-Hans.json +3 -3
- package/locales/you/zh-Hant.json +3 -3
- package/locales/zh-Hans.json +56 -39
- package/locales/zh-Hant.json +66 -49
- package/package.json +1 -1
- package/preview.html +8 -2
- package/ui/base.js +33 -0
- package/ui/caps.js +18 -15
- package/ui/csp.js +1 -1
- package/ui/export.js +4 -4
- package/ui/icons.js +4 -4
- package/ui/kit.js +12 -7
- package/ui/looks/classic.css +2 -0
- package/ui/looks/human.css +15 -5
- package/ui/looks/neon.css +4 -5
- package/ui/looks/tilde.css +1 -1
- package/ui/looks/velvet.css +1 -1
- package/ui/looks.js +2 -5
- package/ui/markdown.js +23 -19
- package/ui/menu-icons.js +13 -5
- package/ui/model.js +4 -4
- package/ui/pointed.js +22 -0
- package/ui/reader-state.js +4 -3
- package/ui/reader.js +1 -1
- package/ui/seal.js +80 -25
- package/ui/shown.js +53 -0
- package/ui/style.css +19 -21
- package/ui/touches.js +22 -0
- package/ui/view.css +27 -1
- package/ui/view.js +38 -15
- package/vendor/pele/lazy.d.ts +1 -0
- package/locales/reader/ja.json +0 -9
- package/ui/looks/mondrian.css +0 -90
- package/ui/looks/paper.css +0 -51
- /package/locales/{reader → natural-voice}/am.json +0 -0
- /package/locales/{reader → natural-voice}/ar.json +0 -0
- /package/locales/{reader → natural-voice}/bg.json +0 -0
- /package/locales/{reader → natural-voice}/bn.json +0 -0
- /package/locales/{reader → natural-voice}/br.json +0 -0
- /package/locales/{reader → natural-voice}/co.json +0 -0
- /package/locales/{reader → natural-voice}/cs.json +0 -0
- /package/locales/{reader → natural-voice}/da.json +0 -0
- /package/locales/{reader → natural-voice}/de.json +0 -0
- /package/locales/{reader → natural-voice}/el.json +0 -0
- /package/locales/{reader → natural-voice}/en.json +0 -0
- /package/locales/{reader → natural-voice}/fa.json +0 -0
- /package/locales/{reader → natural-voice}/fi.json +0 -0
- /package/locales/{reader → natural-voice}/fr-CA.json +0 -0
- /package/locales/{reader → natural-voice}/fr.json +0 -0
- /package/locales/{reader → natural-voice}/ha.json +0 -0
- /package/locales/{reader → natural-voice}/he.json +0 -0
- /package/locales/{reader → natural-voice}/hi.json +0 -0
- /package/locales/{reader → natural-voice}/hr.json +0 -0
- /package/locales/{reader → natural-voice}/hu.json +0 -0
- /package/locales/{reader → natural-voice}/id.json +0 -0
- /package/locales/{reader → natural-voice}/it.json +0 -0
- /package/locales/{reader → natural-voice}/ko.json +0 -0
- /package/locales/{reader → natural-voice}/mr.json +0 -0
- /package/locales/{reader → natural-voice}/ms.json +0 -0
- /package/locales/{reader → natural-voice}/nl.json +0 -0
- /package/locales/{reader → natural-voice}/pl.json +0 -0
- /package/locales/{reader → natural-voice}/pt.json +0 -0
- /package/locales/{reader → natural-voice}/ro.json +0 -0
- /package/locales/{reader → natural-voice}/ru.json +0 -0
- /package/locales/{reader → natural-voice}/sk.json +0 -0
- /package/locales/{reader → natural-voice}/sv.json +0 -0
- /package/locales/{reader → natural-voice}/sw.json +0 -0
- /package/locales/{reader → natural-voice}/ta.json +0 -0
- /package/locales/{reader → natural-voice}/te.json +0 -0
- /package/locales/{reader → natural-voice}/th.json +0 -0
- /package/locales/{reader → natural-voice}/tl.json +0 -0
- /package/locales/{reader → natural-voice}/tr.json +0 -0
- /package/locales/{reader → natural-voice}/uk.json +0 -0
- /package/locales/{reader → natural-voice}/ur.json +0 -0
- /package/locales/{reader → natural-voice}/vi.json +0 -0
- /package/locales/{reader → natural-voice}/yo.json +0 -0
package/caps/slides/save.js
CHANGED
|
@@ -21,14 +21,14 @@ async function print(view, resolve) {
|
|
|
21
21
|
for (const picture of holder.querySelectorAll('img')) picture.loading = 'eager'
|
|
22
22
|
// Its charts drawn and still, its diagrams and pictures in, its faces too.
|
|
23
23
|
const blocks = () => [...holder.querySelectorAll('.deck-block, .deck-picture')]
|
|
24
|
-
await printAlone(holder, 'is-printing-deck', { page: '@page { size: 13.333in 7.5in; margin: 0 }', drawing: () => blocks().some((box) => !(/** @type {
|
|
25
|
-
ready: () => { for (const box of blocks()) /** @type {
|
|
24
|
+
await printAlone(holder, 'is-printing-deck', { page: '@page { size: 13.333in 7.5in; margin: 0 }', drawing: () => blocks().some((box) => !(/** @type {{ chart?: import('echarts').ECharts | null }} */ (box).chart || box.querySelector('img')?.complete || box.classList.contains('is-failed'))),
|
|
25
|
+
ready: () => { for (const box of blocks()) /** @type {{ chart?: import('echarts').ECharts | null }} */ (box).chart?.setOption({ animation: false }); printed.fitAll() }, gone: () => printed.destroy() })
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
/** What a deck can do (ui/out.js): the one in this pane, as it is on show when pressed. @param {{ uri: string, name: string }} file @param {Element} pane @returns {import('../../ui/out.js').Ways | null} */
|
|
29
29
|
export function ways(file, pane) {
|
|
30
30
|
const shown = () => /** @type {NonNullable<ReturnType<typeof here>>} */ (here(pane)), page = async () => /** @type {BlobPart} */ (await (await import('../skills/decks.js')).bytesOf(file.uri, shown().view.source)), named = `${file.name}.deck.html`
|
|
31
|
-
return { share: () => ({ text: `\`\`\`\`deck\n${shown().view.source}\n\`\`\`\`` }),
|
|
31
|
+
return { share: () => ({ text: `\`\`\`\`deck\n${shown().view.source}\n\`\`\`\`` }), thing: { kind: /** @type {const} */ ('deck'), uri: file.uri }, page,
|
|
32
32
|
send: { file: named, type: 'text/html', make: async () => ({ title: file.name, files: [new File([await page()], named, { type: 'text/html' })] }) },
|
|
33
33
|
copy: { id: 'copy', label: t('slides.out.copy'), run: () => copyDrawing(shown().view.source, shown().picture()).then(() => notify(t('toast.copied'))) },
|
|
34
34
|
files: [{ id: 'pptx', glyph: icons.slides, label: t('slides.out.pptx'), run: async () => {
|
package/caps/slides/slides.css
CHANGED
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
the room's, Jean's version of a slide ringed in the flame, the words pointed at outlined; beside the conversation, the
|
|
3
3
|
deck's Markdown under its slides, as the pane is narrow; on a card, its first slide alone. */
|
|
4
4
|
app-slides { display: block; }
|
|
5
|
+
/* deck names its stage for its slides' transitions: named only while one pages, so that through Jean's own (the drawer's, a
|
|
6
|
+
first answer's) it stays in the page rather than over its top bar, and two decks on screen don't share a name, which ends them. */
|
|
7
|
+
:root:not([data-deck-transition]) .deck-stage { view-transition-name: none; }
|
|
5
8
|
app-slides .deck { gap: 0.4rem; }
|
|
6
9
|
app-slides .deck-bar { flex-wrap: wrap; gap: 0.15rem; color: var(--ink-soft); font: inherit; font-size: 0.85rem; }
|
|
7
10
|
app-slides .deck-bar button { min-inline-size: 2.1rem; min-block-size: 2.1rem; border-radius: 50%; color: var(--ink-soft); }
|
package/caps/slides/slides.js
CHANGED
|
@@ -20,14 +20,15 @@ import { icon } from '../../ui/icons.js'
|
|
|
20
20
|
import { icons } from '../../ui/menu-icons.js'
|
|
21
21
|
import { styleSheet } from '../../ui/sheet.js'
|
|
22
22
|
import { reviewBar } from '../../ui/review.js'
|
|
23
|
-
import { noteRecord
|
|
23
|
+
import { noteRecord } from '../../core/events.js'
|
|
24
|
+
import { taskFiles, fileNamed } from '../../core/files.js'
|
|
24
25
|
import { t, useStrings, locale, intlLocales } from '../../core/i18n.js'
|
|
25
26
|
import { languageOf } from '../../ui/language.js'
|
|
26
27
|
import { kitHere, withNames, words } from './kit.js'
|
|
27
28
|
import { kitSlot } from './kit-slot.js'
|
|
28
29
|
import { cjk } from '../layouts/shapes.js'
|
|
29
30
|
import { drawing, coloured, told, wordsBelow } from '../interactive/diagram.js'
|
|
30
|
-
import { withLayout, withoutKit, changesOf, swapped, withPictures,
|
|
31
|
+
import { withLayout, withoutKit, changesOf, swapped, withPictures, placeIn } from './edit.js'
|
|
31
32
|
|
|
32
33
|
await Promise.all([useStrings('slides'), useStrings('interactive'), styleSheet(new URL('../../vendor/deck/deck.css', import.meta.url)), styleSheet(new URL('slides.css', import.meta.url))])
|
|
33
34
|
|
|
@@ -137,9 +138,9 @@ class AppSlides extends HTMLElement {
|
|
|
137
138
|
|
|
138
139
|
/** The pictures the deck names that aren't read yet: one of the task's by the name the brain gave it, else at its place from the deck's folder; none in a task saved as a page, whose room has no files. */
|
|
139
140
|
async held() {
|
|
140
|
-
const records = app.current.peek()?.records ?? [], pictures =
|
|
141
|
+
const records = app.current.peek()?.records ?? [], pictures = taskFiles(records, app.live.peek()?.turn?.steps).filter((one) => /^image\//.test(one.mimeType ?? '')), places = /** @type {string[]} */ ([])
|
|
141
142
|
withPictures(this.source, (place) => void (!app.fs || /^[a-z][\w+.-]*:/i.test(place) || this.urls.has(place) || (places.push(place), this.urls.set(place, ''))))
|
|
142
|
-
await Promise.all(places.map((place) => ((uri) => uri && app.fs.readBytes(`${app.projectDir}/${uri}`).then((bytes) => bytes && this.urls.set(place, URL.createObjectURL(new Blob([/** @type {BlobPart} */ (bytes)], { type: /\.svg$/i.test(uri) ? 'image/svg+xml' : '' })))))(
|
|
143
|
+
await Promise.all(places.map((place) => ((uri) => uri && app.fs.readBytes(`${app.projectDir}/${uri}`).then((bytes) => bytes && this.urls.set(place, URL.createObjectURL(new Blob([/** @type {BlobPart} */ (bytes)], { type: /\.svg$/i.test(uri) ? 'image/svg+xml' : '' })))))(fileNamed(pictures, place)?.uri ?? placeIn(place))))
|
|
143
144
|
return this.isConnected
|
|
144
145
|
}
|
|
145
146
|
|
|
@@ -305,7 +306,7 @@ drawn.value = { ...drawn.peek(), deck, markdown: fenced, md: fenced, slidev: fen
|
|
|
305
306
|
function notes(records) {
|
|
306
307
|
const one = shown.peek()
|
|
307
308
|
if (!one) return []
|
|
308
|
-
const text = `The deck ${one.name} (${one.path}) is open beside the conversation, on slide ${one.at + 1} of ${one.count}.${one.part ? ` The user points at its words "${one.part}".` : ''} As it is now:\n\n\`\`\`\`deck\n${one.source.trim()}\n\`\`\`\`\n\nTo change it, write it again whole in a \`\`\`\`deck block with only what is asked changed: the user accepts or rejects each slide you change.`
|
|
309
|
+
const text = `The deck ${one.name} (${one.path}) is open beside the conversation, on slide ${one.at + 1} of ${one.count}.${one.part ? ` The user points at its words "${one.part}".` : ''} As it is now:\n\n\`\`\`\`deck\n${one.source.trim()}\n\`\`\`\`\n\nTo change it, write it again whole in a \`\`\`\`deck block with only what is asked changed: the user accepts or rejects each slide you change. A deck about something else is a new one, with a title of its own.`
|
|
309
310
|
const last = records.findLast(({ update }) => update?.sessionUpdate === '_system_note' && update.data?.kind === 'deck')
|
|
310
311
|
return last?.update?.sessionUpdate === '_system_note' && last.update.text === text ? [] : [noteRecord(text, { kind: 'deck', uri: one.path })]
|
|
311
312
|
}
|
package/caps/tables/formula.js
CHANGED
|
@@ -84,7 +84,7 @@ export function compile(text, columns) {
|
|
|
84
84
|
if (!yes || !no || !take(')')) throw wrong()
|
|
85
85
|
return (cells) => (test(cells) ? yes(cells) : no(cells))
|
|
86
86
|
}
|
|
87
|
-
const member = /** @type {
|
|
87
|
+
const member = /** @type {Record<string, unknown>} */ (/** @type {unknown} */ (Math))[MATH.get(token.text.toLowerCase()) ?? '']
|
|
88
88
|
if (member === undefined) throw wrong()
|
|
89
89
|
if (typeof member !== 'function') return () => member
|
|
90
90
|
if (!take('(')) throw wrong()
|
package/core/anthropic.js
CHANGED
|
@@ -4,7 +4,7 @@ import { LLMError, headersFor, post, endpoint, sseEvents, parseData, parseArgs,
|
|
|
4
4
|
/**
|
|
5
5
|
* @import { ChatMessage, SystemNote, StreamEvent, StopReason, Usage, Connection, Prompt, WireRequest } from './types.js'
|
|
6
6
|
* @import { SSEEvent } from './sse.js'
|
|
7
|
-
* @
|
|
7
|
+
* @import { AnthropicMessage, AnthropicBlock, AnthropicRequestBody, AnthropicStreamBlock, AnthropicDelta, AnthropicCitation, AnthropicUsage } from './wire.js'
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
// Adaptive thinking exists from Claude 4.6 on, except Haiku; older models reject it.
|
|
@@ -81,7 +81,7 @@ export function minimumCacheable(model) {
|
|
|
81
81
|
/** @param {Connection & Prompt} options @returns {WireRequest} */
|
|
82
82
|
function anthropicRequest({ brain, apiKey, system, messages, tools = [], maxTokens, effort }) {
|
|
83
83
|
const headers = headersFor(brain, apiKey)
|
|
84
|
-
/** @type {
|
|
84
|
+
/** @type {AnthropicRequestBody} */
|
|
85
85
|
const body = { model: brain.model, max_tokens: maxTokens ?? 64000, stream: true }
|
|
86
86
|
// One breakpoint at the end of the frozen system prompt (tools come before it), and
|
|
87
87
|
// automatic caching for the growing conversation (D49).
|
|
@@ -126,7 +126,7 @@ function toAnthropic(messages, model) {
|
|
|
126
126
|
if (!next.content.length) continue
|
|
127
127
|
const prev = out.at(-1)
|
|
128
128
|
// Roles must alternate: consecutive tool results become one user message.
|
|
129
|
-
if (prev?.role === next.role) /** @type {AnthropicMessage} */ (prev).content = [.../** @type {
|
|
129
|
+
if (prev?.role === next.role) /** @type {AnthropicMessage} */ (prev).content = [.../** @type {AnthropicMessage['content']} */ (prev.content), ...next.content]
|
|
130
130
|
else out.push(next)
|
|
131
131
|
if (message.role === 'user' && notes.length) {
|
|
132
132
|
if (native) for (const text of notes) out.push({ role: 'system', content: text })
|
|
@@ -148,7 +148,7 @@ function toAnthropicMessage(m, model) {
|
|
|
148
148
|
}
|
|
149
149
|
// Thinking blocks must come back exactly as they were received, to the model that made them.
|
|
150
150
|
if (Array.isArray(m.raw) && (!m.rawModel || m.rawModel === model)) return { role: 'assistant', content: m.raw }
|
|
151
|
-
/** @type {
|
|
151
|
+
/** @type {AnthropicBlock[]} */
|
|
152
152
|
const content = m.content ? [{ type: 'text', text: m.content }] : []
|
|
153
153
|
for (const c of m.toolCalls ?? []) content.push({ type: 'tool_use', id: c.id, name: c.name, input: c.args ?? {} })
|
|
154
154
|
return { role: 'assistant', content }
|
|
@@ -173,8 +173,8 @@ async function* readAnthropic(events) {
|
|
|
173
173
|
if (out) yield out
|
|
174
174
|
}
|
|
175
175
|
// Text that cites web pages: the sources follow it, as [n] once numbered.
|
|
176
|
-
const cited = type === 'content_block_stop' ? blocks[d.index]?.citations?.filter((/** @type {
|
|
177
|
-
if (cited?.length) yield { type: 'cite', sources: cited.map((/** @type {
|
|
176
|
+
const cited = type === 'content_block_stop' ? blocks[d.index]?.citations?.filter((/** @type {AnthropicCitation} */ c) => c.url) : null
|
|
177
|
+
if (cited?.length) yield { type: 'cite', sources: cited.map((/** @type {AnthropicCitation & { url: string }} */ c) => ({ title: c.title || c.url, url: c.url, quote: c.cited_text })) }
|
|
178
178
|
if (type === 'message_delta') {
|
|
179
179
|
stop = d.delta?.stop_reason ?? stop
|
|
180
180
|
// Later counts are cumulative and may restate earlier ones.
|
|
@@ -191,7 +191,7 @@ async function* readAnthropic(events) {
|
|
|
191
191
|
yield doneEvent(STOP.get(stop) ?? 'other', anthropicUsage(usage), text, toolCalls, raw)
|
|
192
192
|
}
|
|
193
193
|
|
|
194
|
-
/** @param {any} block */
|
|
194
|
+
/** @param {any} block @returns {AnthropicStreamBlock} */
|
|
195
195
|
function startBlock(block = {}) {
|
|
196
196
|
switch (block.type) {
|
|
197
197
|
case 'text': return { type: 'text', text: block.text ?? '' }
|
|
@@ -203,7 +203,7 @@ function startBlock(block = {}) {
|
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
205
|
|
|
206
|
-
/** @param {any} block @param {
|
|
206
|
+
/** @param {any} block @param {AnthropicDelta | undefined} delta @returns {StreamEvent|null} */
|
|
207
207
|
function applyDelta(block, delta) {
|
|
208
208
|
if (!block || !delta) return null
|
|
209
209
|
if (delta.type === 'signature_delta') block.signature += delta.signature
|
|
@@ -219,7 +219,7 @@ function applyDelta(block, delta) {
|
|
|
219
219
|
/**
|
|
220
220
|
* After a mid-output refusal, the API keeps the declined partial and marks the switch with a
|
|
221
221
|
* 'fallback' block. Only its text may be echoed back; thinking and tool calls before it are dropped.
|
|
222
|
-
* @param {
|
|
222
|
+
* @template {{ type: string }} T @param {T[]} blocks
|
|
223
223
|
*/
|
|
224
224
|
function keepAfterFallback(blocks) {
|
|
225
225
|
const cut = blocks.map((b) => b.type).lastIndexOf('fallback')
|
|
@@ -239,7 +239,7 @@ function finishBlock(block) {
|
|
|
239
239
|
}
|
|
240
240
|
}
|
|
241
241
|
|
|
242
|
-
/** Anthropic counts cached input apart; Usage.inputTokens counts all of it. @param {
|
|
242
|
+
/** Anthropic counts cached input apart; Usage.inputTokens counts all of it. @param {AnthropicUsage} u @returns {Usage} */
|
|
243
243
|
function anthropicUsage(u) {
|
|
244
244
|
const read = u.cache_read_input_tokens ?? 0
|
|
245
245
|
const write = u.cache_creation_input_tokens ?? 0
|
package/core/deferred.js
CHANGED
|
@@ -22,8 +22,8 @@ function shape(schema, root, depth) {
|
|
|
22
22
|
const { $ref, anyOf, oneOf, enum: values, type, items, properties } = schema ?? {}
|
|
23
23
|
const either = (/** @type {string[]} */ list) => [...new Set(list)].join(' | ')
|
|
24
24
|
if ($ref) return depth ? shape((root.$defs ?? root.definitions)?.[$ref.split('/').pop()], root, depth - 1) : 'object'
|
|
25
|
-
if (schema?.const !== undefined || values) return either((values ?? [schema.const]).map((/** @type {
|
|
26
|
-
if (anyOf ?? oneOf) return either((anyOf ?? oneOf).map((/** @type {
|
|
25
|
+
if (schema?.const !== undefined || values) return either((values ?? [schema.const]).map((/** @type {unknown} */ value) => JSON.stringify(value)))
|
|
26
|
+
if (anyOf ?? oneOf) return either((anyOf ?? oneOf).map((/** @type {unknown} */ one) => shape(one, root, depth)))
|
|
27
27
|
if (Array.isArray(type)) return either(type.map((one) => shape({ ...schema, type: one }, root, depth)))
|
|
28
28
|
if (type === 'array' && items && depth) return shape(items, root, depth - 1).replace(/^.* \| .*$/, '($&)') + '[]'
|
|
29
29
|
if (properties && depth) return `{ ${fields(schema, (property) => shape(property, root, depth - 1))} }`
|
|
@@ -61,8 +61,9 @@ export function findTools({ tools, none = 'There are no other tools.' }) {
|
|
|
61
61
|
// A tool asked for by name comes before those that mention it, the name that says least first.
|
|
62
62
|
const named = deferred.filter((tool) => words(query).length && words(query).every((word) => words(spaced(tool.spec.name)).includes(word))).sort((a, b) => a.spec.name.length - b.spec.name.length)
|
|
63
63
|
const hits = bm25(deferred.map((tool) => `${spaced(tool.spec.name)} ${tool.spec.description}`), query).map((hit) => deferred[hit.index])
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
// Nothing that does it is said so, with what can be asked for by name, and nothing is declared.
|
|
65
|
+
const found = [...new Set([...named, ...hits])].slice(0, 5)
|
|
66
|
+
return found.length ? `${found.map(signature).join('\n')}\n\n${reach(found.map((tool) => tool.spec.name), ctx)}` : `No tool does that. Those that can be found: ${deferred.map((tool) => tool.spec.name).join(', ')}.`
|
|
66
67
|
},
|
|
67
68
|
}
|
|
68
69
|
}
|
package/core/events.js
CHANGED
|
@@ -26,7 +26,7 @@ export const metaRecord = (by, meta) => ({ at: new Date().toISOString(), by, met
|
|
|
26
26
|
/**
|
|
27
27
|
* @typedef {{ index: number, text: string, thought: string, tools: ToolCallInfo[], compaction?: CompactionUpdate }} Step compaction: a summary read on from (D359)
|
|
28
28
|
* @typedef {{ text: string, data: SystemNoteData }} Note
|
|
29
|
-
* @typedef {{ text: string, files: ResourceLink[], at: string, upTo: number, steer?: boolean }} UserTurn upTo: how many records lead up to its end; steer: D365
|
|
29
|
+
* @typedef {{ text: string, files: ResourceLink[], at: string, upTo: number, steer?: boolean, theirs?: true }} UserTurn upTo: how many records lead up to its end; steer: D365; theirs: someone else's
|
|
30
30
|
* @typedef {{ user: UserTurn | null, notes: Note[], steps: Step[], plan?: PlanEntry[], at: string, end?: string }} Turn
|
|
31
31
|
* notes are the system notes recorded just before this turn's user message; end is when its answer was last written.
|
|
32
32
|
*/
|
|
@@ -55,6 +55,7 @@ export function foldTurns(records) {
|
|
|
55
55
|
const user = /** @type {UserTurn} */ (turn.user)
|
|
56
56
|
user.upTo = index + 1
|
|
57
57
|
if (update._meta?.steer) user.steer = true
|
|
58
|
+
if (update._meta?.theirs) user.theirs = true
|
|
58
59
|
if (update.content.type === 'resource_link') user.files.push(update.content)
|
|
59
60
|
else user.text += update.content.text
|
|
60
61
|
} else {
|
|
@@ -70,7 +71,7 @@ export function foldTurns(records) {
|
|
|
70
71
|
/** Every file linked from the conversation, in order. @param {Envelope[]} records @returns {ResourceLink[]} */
|
|
71
72
|
export const linkedFiles = (records) => records.flatMap(({ update }) => (update?.sessionUpdate === 'user_message_chunk' && update.content.type === 'resource_link' ? [update.content] : []))
|
|
72
73
|
|
|
73
|
-
/** A picture brains that can see take as it is: PNG, JPEG, WebP or GIF. @param {
|
|
74
|
+
/** A picture brains that can see take as it is: PNG, JPEG, WebP or GIF. @param {{ mimeType?: string }} link */
|
|
74
75
|
export const isPicture = (link) => /^image\/(png|jpeg|webp|gif)$/.test(link.mimeType ?? '')
|
|
75
76
|
|
|
76
77
|
/** @param {Turn} turn @param {AcpUpdate} update @param {number} index */
|
|
@@ -101,14 +102,14 @@ export function unanswered(records) {
|
|
|
101
102
|
}
|
|
102
103
|
|
|
103
104
|
/**
|
|
104
|
-
* A reply's text without
|
|
105
|
-
*
|
|
105
|
+
* A reply's text without its trailing <suggestions> block, hidden from its opening tag on
|
|
106
|
+
* (even mid-stream), and the follow-ups in it.
|
|
106
107
|
* @param {string} text
|
|
107
108
|
*/
|
|
108
109
|
export function splitSuggestions(text) {
|
|
109
|
-
const at = text.search(/<suggestions
|
|
110
|
+
const at = text.search(/<suggestions\s*>|<s(u(g(g(e(s(t(i(o(n(s\s*)?)?)?)?)?)?)?)?)?)?$/i)
|
|
110
111
|
if (at < 0) return { text, suggestions: [] }
|
|
111
|
-
const lines = text.slice(at).replace(/<\/?suggestions
|
|
112
|
+
const lines = text.slice(at).replace(/<\/?suggestions\s*>?/gi, '').split('\n')
|
|
112
113
|
const suggestions = lines.map((line) => line.replace(/^\s*(?:[-*•]|\d+[.)])?\s*/, '').trim()).filter((line) => line && !line.startsWith('<'))
|
|
113
114
|
return { text: text.slice(0, at).trimEnd(), suggestions: suggestions.slice(0, 3) }
|
|
114
115
|
}
|
|
@@ -116,8 +117,8 @@ export function splitSuggestions(text) {
|
|
|
116
117
|
/** Latest title from meta records. @param {Envelope[]} records @returns {string} */
|
|
117
118
|
export const titleOf = (records) => records.findLast((record) => record.meta?.title)?.meta?.title ?? ''
|
|
118
119
|
|
|
119
|
-
/** The words of each request, in order. @param {Envelope[]} records @returns {string[]} */
|
|
120
|
-
export const requestsOf = (records) => records.flatMap(({ update }) => (update?.sessionUpdate === 'user_message_chunk' && update.content.type === 'text' && update.content.text ? [update.content.text] : []))
|
|
120
|
+
/** The words of each request, in order, but someone else's. @param {Envelope[]} records @returns {string[]} */
|
|
121
|
+
export const requestsOf = (records) => records.flatMap(({ update }) => (update?.sessionUpdate === 'user_message_chunk' && update.content.type === 'text' && update.content.text && !update._meta?.theirs ? [update.content.text] : []))
|
|
121
122
|
|
|
122
123
|
/** The words of the request that opened the conversation. @param {Envelope[]} records */
|
|
123
124
|
export const openingOf = (records) => requestsOf(records)[0] ?? ''
|
package/core/files.js
CHANGED
|
@@ -2,14 +2,38 @@
|
|
|
2
2
|
// with a [[page N]] line before each page) and .meta.json. Named by content, so the
|
|
3
3
|
// same file dropped twice is stored once. Conversations link to files, never copy them.
|
|
4
4
|
import { encoder, join, readJSON, walk, writeJSON } from './fs.js'
|
|
5
|
-
import { isPicture } from './events.js'
|
|
5
|
+
import { isPicture, filesMade } from './events.js'
|
|
6
6
|
import { lexicon, lookup } from './search.js'
|
|
7
7
|
|
|
8
|
-
/** @import { FS, Envelope, ResourceLink, DocumentPart } from './types.js' */
|
|
8
|
+
/** @import { FS, Envelope, ResourceLink, DocumentPart, ToolCallInfo } from './types.js' */
|
|
9
9
|
/** @typedef {{ format: 1, kind: 'file', name: string, mimeType: string, size: number, hash: string, pages: number, createdAt: string, author: string, pinned?: boolean }} FileMeta */
|
|
10
10
|
|
|
11
11
|
const MARKER = /^\[\[page (\d+)\]\]$/m
|
|
12
12
|
|
|
13
|
+
/**
|
|
14
|
+
* Every file of a conversation as it came, each the user shared and each its calls made, then those of the answer being written:
|
|
15
|
+
* what a brain can put in what it makes. @param {Envelope[]} records @param {{ tools: ToolCallInfo[] }[]} [steps]
|
|
16
|
+
* @returns {{ uri: string, name: string, mimeType?: string }[]}
|
|
17
|
+
*/
|
|
18
|
+
export const taskFiles = (records, steps = []) => [...records.flatMap(({ update }) => /** @type {{ uri: string, name: string, mimeType?: string }[]} */ (update?.sessionUpdate === 'user_message_chunk'
|
|
19
|
+
&& update.content.type === 'resource_link' && update.content.uri ? [update.content] : update?.sessionUpdate === 'tool_call' ? filesMade([update]) : [])), ...filesMade(steps.flatMap((step) => step.tools))]
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* The file of a conversation a brain names: by its place, else the latest of that name as a brain writes one, its case, %20, a
|
|
23
|
+
* folder before it and its extension aside. @template {{ uri: string, name: string }} T @param {T[]} files @param {string} said
|
|
24
|
+
* @returns {T | undefined}
|
|
25
|
+
*/
|
|
26
|
+
export const fileNamed = (files, said) => ((bare, place = String(said ?? '').trim().replace(/^(\.\.?\/)+/, '')) => files.findLast((one) => one.uri === place)
|
|
27
|
+
?? files.findLast((one) => bare(one.name) === bare(place)))((/** @type {string} */ name) => name.normalize().toLowerCase().replace(/%20/g, ' ').replace(/^.*\//, '').replace(/\.\w+$/, ''))
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Markdown with each picture that names a file of the task as a brain writes one, ``, at that file's place from a
|
|
31
|
+
* folder of the project, `../files/sha256-…`, where documents and Word files take it. @param {string} markdown
|
|
32
|
+
* @param {{ uri: string, name: string }[]} files
|
|
33
|
+
*/
|
|
34
|
+
export const picturesPlaced = (markdown, files) => markdown.replace(/(!\[[^\]\n]*\]\()(<[^>\n]+>|[^\s)]+)/g, (all, open, said) => ((one) => (one ? `${open}../${one.uri}` : all))(
|
|
35
|
+
/^<?([a-z][\w+.-]*:|\.\.\/files\/)/i.test(said) ? undefined : fileNamed(files, said.replace(/^<|>$/g, ''))))
|
|
36
|
+
|
|
13
37
|
/** @param {Uint8Array} bytes */
|
|
14
38
|
export async function sha256Hex(bytes) {
|
|
15
39
|
const digest = await crypto.subtle.digest('SHA-256', /** @type {BufferSource} */ (bytes))
|
|
@@ -221,7 +245,7 @@ export function parsePages(spec, count) {
|
|
|
221
245
|
* @returns {import('./loop.js').Tool}
|
|
222
246
|
*/
|
|
223
247
|
export function readTool({ fs, projectDir, files, maxTokens = 6000, words = () => undefined }) {
|
|
224
|
-
/** @param {
|
|
248
|
+
/** @param {{ file?: unknown } | undefined} args @param {AbortSignal} [signal] */
|
|
225
249
|
const find = (args, signal) => {
|
|
226
250
|
const wanted = String(args?.file ?? '').trim().toLowerCase()
|
|
227
251
|
return files(signal).findLast((link) => link.name.toLowerCase() === wanted || link.uri.toLowerCase() === wanted)
|
package/core/fs.js
CHANGED
|
@@ -8,44 +8,30 @@ export function normalizeDir(path) {
|
|
|
8
8
|
if (typeof path !== 'string') throw new TypeError(`Path must be a string, got ${typeof path}`)
|
|
9
9
|
if (path.startsWith('/') || path.includes('\\')) throw new TypeError(`Invalid path: ${path}`)
|
|
10
10
|
const trimmed = path.endsWith('/') ? path.slice(0, -1) : path
|
|
11
|
-
if (trimmed
|
|
12
|
-
for (const segment of trimmed.split('/')) {
|
|
13
|
-
if (segment === '' || segment === '.' || segment === '..') throw new TypeError(`Invalid path: ${path}`)
|
|
14
|
-
}
|
|
11
|
+
if (trimmed && trimmed.split('/').some((segment) => segment === '' || segment === '.' || segment === '..')) throw new TypeError(`Invalid path: ${path}`)
|
|
15
12
|
return trimmed
|
|
16
13
|
}
|
|
17
14
|
|
|
18
15
|
/** @param {string} path relative POSIX path, e.g. "projects/x/project.md" @returns {string} */
|
|
19
|
-
export
|
|
20
|
-
const normalized = normalizeDir(path)
|
|
21
|
-
if (normalized === '') throw new TypeError('Empty path')
|
|
22
|
-
return normalized
|
|
23
|
-
}
|
|
16
|
+
export const normalizePath = (path) => normalizeDir(path) || (() => { throw new TypeError('Empty path') })()
|
|
24
17
|
|
|
25
18
|
/** Empty parts are ignored; joining nothing gives '' (the root). @param {...string} parts */
|
|
26
19
|
export const join = (...parts) => parts.map(normalizeDir).filter(Boolean).join('/')
|
|
27
20
|
|
|
28
21
|
/** @param {string} path @returns {string} '' for top-level entries */
|
|
29
|
-
export
|
|
30
|
-
const normalized = normalizePath(path)
|
|
31
|
-
const slash = normalized.lastIndexOf('/')
|
|
32
|
-
return slash < 0 ? '' : normalized.slice(0, slash)
|
|
33
|
-
}
|
|
22
|
+
export const dirname = (path) => ((normalized) => normalized.slice(0, Math.max(normalized.lastIndexOf('/'), 0)))(normalizePath(path))
|
|
34
23
|
|
|
35
|
-
/** @param {string} path */
|
|
36
|
-
export
|
|
37
|
-
const normalized = normalizePath(path)
|
|
38
|
-
return normalized.slice(normalized.lastIndexOf('/') + 1)
|
|
39
|
-
}
|
|
24
|
+
/** @param {string} path @returns {string} */
|
|
25
|
+
export const basename = (path) => ((normalized) => normalized.slice(normalized.lastIndexOf('/') + 1))(normalizePath(path))
|
|
40
26
|
|
|
41
27
|
/** Entries in the order of their names' code units, as every FS lists them. @param {DirEntry} a @param {DirEntry} b */
|
|
42
28
|
export const byName = (a, b) => (a.name < b.name ? -1 : a.name > b.name ? 1 : 0)
|
|
43
29
|
|
|
44
|
-
/** @param {unknown} text */
|
|
45
|
-
function assertText(text) { if (typeof text !== 'string') throw new TypeError(`File content must be a string, got ${typeof text}`) }
|
|
30
|
+
/** File content as text, or a TypeError. @param {unknown} text @returns {string} */
|
|
31
|
+
export function assertText(text) { if (typeof text !== 'string') throw new TypeError(`File content must be a string, got ${typeof text}`); return text }
|
|
46
32
|
|
|
47
|
-
/** @param {unknown} bytes */
|
|
48
|
-
function assertBytes(bytes) { if (!(bytes instanceof Uint8Array)) throw new TypeError('File content must be a Uint8Array') }
|
|
33
|
+
/** File content as bytes, or a TypeError. @param {unknown} bytes @returns {Uint8Array} */
|
|
34
|
+
export function assertBytes(bytes) { if (!(bytes instanceof Uint8Array)) throw new TypeError('File content must be a Uint8Array'); return bytes }
|
|
49
35
|
|
|
50
36
|
export const encoder = new TextEncoder()
|
|
51
37
|
const decoder = new TextDecoder()
|
|
@@ -64,22 +50,13 @@ export function memoryFS(initial = {}) {
|
|
|
64
50
|
const changed = new Map()
|
|
65
51
|
let clock = 0
|
|
66
52
|
/** @param {string} key @param {string | Uint8Array} value */
|
|
67
|
-
const put = (key, value) => {
|
|
68
|
-
files.set(key, value)
|
|
69
|
-
changed.set(key, (clock = Math.max(clock + 1, Date.now())))
|
|
70
|
-
}
|
|
53
|
+
const put = (key, value) => { files.set(key, value); changed.set(key, (clock = Math.max(clock + 1, Date.now()))) }
|
|
71
54
|
/** @param {string} key */
|
|
72
|
-
const text = (key) =>
|
|
73
|
-
const value = files.get(key)
|
|
74
|
-
return value === undefined ? null : typeof value === 'string' ? value : decoder.decode(value)
|
|
75
|
-
}
|
|
55
|
+
const text = (key) => ((value) => (value === undefined ? null : typeof value === 'string' ? value : decoder.decode(value)))(files.get(key))
|
|
76
56
|
for (const [path, value] of Object.entries(initial)) put(normalizePath(path), value)
|
|
77
57
|
|
|
78
58
|
/** @param {string} path */
|
|
79
|
-
const isDir = (path) =>
|
|
80
|
-
for (const key of files.keys()) if (key.startsWith(path + '/')) return true
|
|
81
|
-
return false
|
|
82
|
-
}
|
|
59
|
+
const isDir = (path) => [...files.keys()].some((key) => key.startsWith(path + '/'))
|
|
83
60
|
|
|
84
61
|
/** A path a file can be written at, normalized: not a directory, and under none of the files. @param {string} path */
|
|
85
62
|
const writable = (path) => {
|
|
@@ -90,26 +67,11 @@ export function memoryFS(initial = {}) {
|
|
|
90
67
|
}
|
|
91
68
|
|
|
92
69
|
return {
|
|
93
|
-
async
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
async
|
|
97
|
-
|
|
98
|
-
return value === undefined ? null : typeof value === 'string' ? encoder.encode(value) : value.slice()
|
|
99
|
-
},
|
|
100
|
-
async write(path, value) {
|
|
101
|
-
assertText(value)
|
|
102
|
-
put(writable(path), value)
|
|
103
|
-
},
|
|
104
|
-
async writeBytes(path, bytes) {
|
|
105
|
-
assertBytes(bytes)
|
|
106
|
-
put(writable(path), bytes.slice())
|
|
107
|
-
},
|
|
108
|
-
async append(path, value) {
|
|
109
|
-
assertText(value)
|
|
110
|
-
const key = writable(path)
|
|
111
|
-
put(key, (text(key) ?? '') + value)
|
|
112
|
-
},
|
|
70
|
+
read: async (path) => text(normalizePath(path)),
|
|
71
|
+
readBytes: async (path) => ((value) => (value === undefined ? null : typeof value === 'string' ? encoder.encode(value) : value.slice()))(files.get(normalizePath(path))),
|
|
72
|
+
write: async (path, value) => put(writable(path), assertText(value)),
|
|
73
|
+
writeBytes: async (path, bytes) => put(writable(path), assertBytes(bytes).slice()),
|
|
74
|
+
append: async (path, value) => ((key) => put(key, (text(key) ?? '') + assertText(value)))(writable(path)),
|
|
113
75
|
async list(dir) {
|
|
114
76
|
const normalized = normalizeDir(dir)
|
|
115
77
|
const prefix = normalized ? normalized + '/' : ''
|
|
@@ -122,27 +84,11 @@ export function memoryFS(initial = {}) {
|
|
|
122
84
|
}
|
|
123
85
|
return [...children].map(([name, kind]) => ({ name, kind })).sort(byName)
|
|
124
86
|
},
|
|
125
|
-
async
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
if (file === key || file.startsWith(key + '/')) files.delete(file)
|
|
129
|
-
}
|
|
130
|
-
},
|
|
131
|
-
async exists(path) {
|
|
132
|
-
const key = normalizePath(path)
|
|
133
|
-
return files.has(key) || isDir(key)
|
|
134
|
-
},
|
|
135
|
-
async stat(path) {
|
|
136
|
-
const key = normalizePath(path)
|
|
137
|
-
const value = files.get(key)
|
|
138
|
-
return value === undefined ? null : { size: typeof value === 'string' ? encoder.encode(value).length : value.length, lastModified: changed.get(key) ?? 0 }
|
|
139
|
-
},
|
|
87
|
+
remove: async (path) => { const key = normalizePath(path); for (const file of [...files.keys()]) if (file === key || file.startsWith(key + '/')) files.delete(file) },
|
|
88
|
+
exists: async (path) => ((key) => files.has(key) || isDir(key))(normalizePath(path)),
|
|
89
|
+
stat: async (path) => ((key, value) => (value === undefined ? null : { size: typeof value === 'string' ? encoder.encode(value).length : value.length, lastModified: changed.get(key) ?? 0 }))(normalizePath(path), files.get(normalizePath(path))),
|
|
140
90
|
watch: () => () => {},
|
|
141
|
-
async
|
|
142
|
-
let usage = 0
|
|
143
|
-
for (const value of files.values()) usage += value.length
|
|
144
|
-
return { usage }
|
|
145
|
-
},
|
|
91
|
+
estimate: async () => ({ usage: [...files.values()].reduce((usage, value) => usage + value.length, 0) }),
|
|
146
92
|
}
|
|
147
93
|
}
|
|
148
94
|
|
|
@@ -152,7 +98,7 @@ export function rootedFS(fs, dir) {
|
|
|
152
98
|
const view = /** @type {any} */ (Object.fromEntries(['read', 'readBytes', 'write', 'writeBytes', 'append', 'remove', 'exists', 'stat']
|
|
153
99
|
.map((op) => [op, (/** @type {string} */ path, /** @type {any} */ value) => /** @type {any} */ (fs)[op](at(path), value)])))
|
|
154
100
|
return { ...view, list: (path) => fs.list(join(dir, path)), estimate: fs.estimate,
|
|
155
|
-
watch: (cb) => fs.watch?.((path) => { if (path.startsWith(`${dir}/`)) cb(path.slice(dir.length + 1)) }) ?? (() => {}) }
|
|
101
|
+
watch: (cb, options) => fs.watch?.((path) => { if (path.startsWith(`${dir}/`)) cb(path.slice(dir.length + 1)) }, options) ?? (() => {}) }
|
|
156
102
|
}
|
|
157
103
|
|
|
158
104
|
/** Every file under `dir`, recursively, as paths relative to the root. @param {FS} fs @param {string} [dir] @returns {Promise<string[]>} */
|
package/core/hooks.js
CHANGED
|
@@ -18,18 +18,18 @@ export const TIERS = /** @type {const} */ (['policy', 'user', 'jean', 'edge'])
|
|
|
18
18
|
* @property {string} [refuse] a guard that fails closed: what it answers when it fails before going on
|
|
19
19
|
*/
|
|
20
20
|
|
|
21
|
-
/** @param {Record<string, unknown> | undefined} match @param {
|
|
21
|
+
/** @param {Record<string, unknown> | undefined} match @param {Record<string, unknown>} e */
|
|
22
22
|
const matches = (match, e) => Object.entries(match ?? {}).every(([key, want]) => (Array.isArray(want) ? want.includes(e?.[key])
|
|
23
23
|
: want instanceof RegExp ? want.test(String(e?.[key] ?? '')) : e?.[key] === want))
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
26
|
* Runs an event through its hooks, then through Jean's behaviour, and gives back what came of it.
|
|
27
|
-
* @param {Hook[]} hooks @param {string} name @param {
|
|
27
|
+
* @param {Hook[]} hooks @param {string} name @param {Record<string, unknown>} input @param {(e: any) => any} behaviour @returns {Promise<any>}
|
|
28
28
|
*/
|
|
29
29
|
export async function fire(hooks, name, input, behaviour) {
|
|
30
30
|
const chain = hooks.filter((hook) => hook.on === name && matches(hook.match, input))
|
|
31
31
|
.sort((a, b) => TIERS.indexOf(a.tier ?? 'jean') - TIERS.indexOf(b.tier ?? 'jean'))
|
|
32
|
-
/** @param {number} i @param {
|
|
32
|
+
/** @param {number} i @param {Record<string, unknown>} e @returns {Promise<any>} */
|
|
33
33
|
const step = async (i, e) => {
|
|
34
34
|
const hook = chain[i]
|
|
35
35
|
if (!hook) return behaviour(e)
|
package/core/i18n.js
CHANGED
|
@@ -78,18 +78,35 @@ const format = (value, lang) => (typeof value === 'number' ? new Intl.NumberForm
|
|
|
78
78
|
/** @param {string} [lang] @returns {'rtl' | 'ltr'} */
|
|
79
79
|
export const dir = (lang = locale.value) => (RTL.has(lang.split('-')[0].toLowerCase()) ? 'rtl' : 'ltr')
|
|
80
80
|
|
|
81
|
+
/** Each language's names of languages, made once: a menu of them names each language in each. @type {Map<string, Intl.DisplayNames>} */
|
|
82
|
+
const names = new Map()
|
|
83
|
+
const namesIn = (/** @type {string} */ lang) => names.get(lang) ?? names.set(lang, new Intl.DisplayNames(intlLocales(lang), { type: 'language' })).get(lang)
|
|
84
|
+
|
|
81
85
|
/** Name of a language, written in `inLang` (defaults to itself). */
|
|
82
86
|
export function languageName(/** @type {string} */ code, inLang = code) {
|
|
83
87
|
try {
|
|
84
|
-
const name = (code === inLang && SPARSE[code]?.name) || (
|
|
88
|
+
const name = (code === inLang && SPARSE[code]?.name) || (namesIn(inLang)?.of(code) ?? code)
|
|
85
89
|
return name.charAt(0).toLocaleUpperCase(inLang) + name.slice(1)
|
|
86
90
|
} catch {
|
|
87
91
|
return code
|
|
88
92
|
}
|
|
89
93
|
}
|
|
90
94
|
|
|
91
|
-
/**
|
|
95
|
+
/**
|
|
96
|
+
* Available locales that match the user's preferences, in their order, without repeats: the same tag, else the same language
|
|
97
|
+
* and likely script, so zh-TW meets zh-Hant and pt-BR meets pt, and the "fil" browsers say meets the "tl" Filipino is written
|
|
98
|
+
* in. Nothing outside it, since the site's pages run it as written (site/site.js).
|
|
99
|
+
* @param {string[]} available @param {readonly string[]} preferred e.g. navigator.languages
|
|
100
|
+
*/
|
|
92
101
|
export function preferredLocales(available, preferred) {
|
|
102
|
+
const languageAndScript = (/** @type {string} */ code) => {
|
|
103
|
+
try {
|
|
104
|
+
const { language, script } = new Intl.Locale(code).maximize()
|
|
105
|
+
return `${language === 'fil' ? 'tl' : language}-${script}`
|
|
106
|
+
} catch {
|
|
107
|
+
return null
|
|
108
|
+
}
|
|
109
|
+
}
|
|
93
110
|
/** @type {string[]} */
|
|
94
111
|
const found = []
|
|
95
112
|
for (const wanted of preferred) {
|
|
@@ -103,24 +120,10 @@ export function preferredLocales(available, preferred) {
|
|
|
103
120
|
/** Best available locale for the user's preferences. @param {string[]} available @param {readonly string[]} preferred e.g. navigator.languages */
|
|
104
121
|
export const pickLocale = (available, preferred) => preferredLocales(available, preferred)[0] ?? (available.includes('en') ? 'en' : available[0])
|
|
105
122
|
|
|
106
|
-
|
|
107
|
-
/** @type {Record<string, string>} */
|
|
108
|
-
const SAME_LANGUAGE = { fil: 'tl' }
|
|
109
|
-
|
|
110
|
-
/** Language and likely script, so zh-TW meets zh-Hant and pt-BR meets pt. @param {string} code */
|
|
111
|
-
function languageAndScript(code) {
|
|
112
|
-
try {
|
|
113
|
-
const { language, script } = new Intl.Locale(code).maximize()
|
|
114
|
-
return `${SAME_LANGUAGE[language] ?? language}-${script}`
|
|
115
|
-
} catch {
|
|
116
|
-
return null
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
/** "14 MB", in the current locale. @param {number} bytes */
|
|
123
|
+
/** "14 MB", or "30 bytes" in words, in the current locale. @param {number} bytes */
|
|
121
124
|
export function formatBytes(bytes) {
|
|
122
|
-
const [unit, size] = bytes >= 1e9 ? ['gigabyte', bytes / 1e9] : bytes >= 1e6 ? ['megabyte', bytes / 1e6] : ['kilobyte', bytes / 1e3]
|
|
123
|
-
return new Intl.NumberFormat(intlLocales(), { style: 'unit', unit, maximumFractionDigits: 1 }).format(size)
|
|
125
|
+
const [unit, size] = bytes >= 1e9 ? ['gigabyte', bytes / 1e9] : bytes >= 1e6 ? ['megabyte', bytes / 1e6] : bytes >= 1e3 ? ['kilobyte', bytes / 1e3] : ['byte', bytes]
|
|
126
|
+
return new Intl.NumberFormat(intlLocales(), { style: 'unit', unit, unitDisplay: bytes < 1e3 ? 'long' : 'short', maximumFractionDigits: 1 }).format(size)
|
|
124
127
|
}
|
|
125
128
|
|
|
126
129
|
/** "527 ms", "1.2 sec", "1 min, 12 sec", in the current locale: to the tenth of a second under ten, else to the second. @param {number} ms */
|