@pie-players/pie-players-shared 0.3.28 → 0.3.30
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/{src → dist}/components/PieItemPlayer.svelte +156 -88
- package/dist/i18n/translations/en/tools.json +1 -1
- package/{src → dist}/i18n/use-i18n-standalone.svelte.ts +1 -0
- package/{src → dist}/i18n/use-i18n.svelte.ts +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/loader-config.d.ts +25 -0
- package/dist/loader-config.d.ts.map +1 -1
- package/dist/loader-config.js +5 -0
- package/dist/loader-config.js.map +1 -1
- package/dist/pie/config.d.ts.map +1 -1
- package/dist/pie/config.js +12 -5
- package/dist/pie/config.js.map +1 -1
- package/dist/pie/custom-element-define.d.ts +1 -1
- package/dist/pie/custom-element-define.d.ts.map +1 -1
- package/dist/pie/custom-element-define.js +2 -2
- package/dist/pie/custom-element-define.js.map +1 -1
- package/dist/pie/iife-loader.d.ts +35 -0
- package/dist/pie/iife-loader.d.ts.map +1 -1
- package/dist/pie/iife-loader.js +138 -2
- package/dist/pie/iife-loader.js.map +1 -1
- package/dist/pie/index.d.ts +3 -1
- package/dist/pie/index.d.ts.map +1 -1
- package/dist/pie/index.js +1 -0
- package/dist/pie/index.js.map +1 -1
- package/dist/pie/overrides.d.ts +9 -0
- package/dist/pie/overrides.d.ts.map +1 -1
- package/dist/pie/overrides.js +36 -0
- package/dist/pie/overrides.js.map +1 -1
- package/dist/pie/resource-monitor.d.ts +17 -0
- package/dist/pie/resource-monitor.d.ts.map +1 -1
- package/dist/pie/resource-monitor.js +284 -81
- package/dist/pie/resource-monitor.js.map +1 -1
- package/dist/pie/updates.d.ts.map +1 -1
- package/dist/pie/updates.js +65 -2
- package/dist/pie/updates.js.map +1 -1
- package/dist/security/index.d.ts +5 -0
- package/dist/security/index.d.ts.map +1 -0
- package/dist/security/index.js +5 -0
- package/dist/security/index.js.map +1 -0
- package/dist/security/sanitize-item-markup.d.ts +46 -0
- package/dist/security/sanitize-item-markup.d.ts.map +1 -0
- package/dist/security/sanitize-item-markup.js +174 -0
- package/dist/security/sanitize-item-markup.js.map +1 -0
- package/dist/security/sanitize-svg-icon.d.ts +15 -0
- package/dist/security/sanitize-svg-icon.d.ts.map +1 -0
- package/dist/security/sanitize-svg-icon.js +89 -0
- package/dist/security/sanitize-svg-icon.js.map +1 -0
- package/dist/security/validate-style-url.d.ts +28 -0
- package/dist/security/validate-style-url.d.ts.map +1 -0
- package/dist/security/validate-style-url.js +58 -0
- package/dist/security/validate-style-url.js.map +1 -0
- package/dist/security/wrap-overwide-images.d.ts +31 -0
- package/dist/security/wrap-overwide-images.d.ts.map +1 -0
- package/dist/security/wrap-overwide-images.js +92 -0
- package/dist/security/wrap-overwide-images.js.map +1 -0
- package/dist/server/npm-registry.d.ts +8 -0
- package/dist/server/npm-registry.d.ts.map +1 -0
- package/dist/server/npm-registry.js +60 -0
- package/dist/server/npm-registry.js.map +1 -0
- package/dist/types/index.d.ts +10 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js.map +1 -1
- package/dist/ui/first-focusable.d.ts +21 -0
- package/dist/ui/first-focusable.d.ts.map +1 -0
- package/dist/ui/first-focusable.js +73 -0
- package/dist/ui/first-focusable.js.map +1 -0
- package/dist/ui/focus-trap.d.ts.map +1 -1
- package/dist/ui/focus-trap.js +2 -13
- package/dist/ui/focus-trap.js.map +1 -1
- package/package.json +44 -34
- package/dist/i18n/scripts/check-coverage.d.ts +0 -16
- package/dist/i18n/scripts/check-coverage.d.ts.map +0 -1
- package/dist/i18n/scripts/check-coverage.js +0 -262
- package/dist/i18n/scripts/check-coverage.js.map +0 -1
- package/dist/i18n/scripts/scan-hardcoded.d.ts +0 -16
- package/dist/i18n/scripts/scan-hardcoded.d.ts.map +0 -1
- package/dist/i18n/scripts/scan-hardcoded.js +0 -266
- package/dist/i18n/scripts/scan-hardcoded.js.map +0 -1
- package/dist/i18n/use-i18n-standalone.svelte.d.ts +0 -87
- package/dist/i18n/use-i18n-standalone.svelte.d.ts.map +0 -1
- package/dist/i18n/use-i18n-standalone.svelte.js +0 -151
- package/dist/i18n/use-i18n-standalone.svelte.js.map +0 -1
- package/dist/i18n/use-i18n.svelte.d.ts +0 -67
- package/dist/i18n/use-i18n.svelte.d.ts.map +0 -1
- package/dist/i18n/use-i18n.svelte.js +0 -144
- package/dist/i18n/use-i18n.svelte.js.map +0 -1
- package/dist/instrumentation/providers/DataDogInstrumentationProvider.d.ts +0 -170
- package/dist/instrumentation/providers/DataDogInstrumentationProvider.d.ts.map +0 -1
- package/dist/instrumentation/providers/DataDogInstrumentationProvider.js +0 -183
- package/dist/instrumentation/providers/DataDogInstrumentationProvider.js.map +0 -1
- package/dist/theming/css-variables.d.ts +0 -7
- package/dist/theming/css-variables.d.ts.map +0 -1
- package/dist/theming/css-variables.js +0 -43
- package/dist/theming/css-variables.js.map +0 -1
- package/dist/theming/index.d.ts +0 -4
- package/dist/theming/index.d.ts.map +0 -1
- package/dist/theming/index.js +0 -3
- package/dist/theming/index.js.map +0 -1
- package/dist/theming/presets.d.ts +0 -7
- package/dist/theming/presets.d.ts.map +0 -1
- package/dist/theming/presets.js +0 -146
- package/dist/theming/presets.js.map +0 -1
- package/dist/theming/types.d.ts +0 -5
- package/dist/theming/types.d.ts.map +0 -1
- package/dist/theming/types.js +0 -2
- package/dist/theming/types.js.map +0 -1
- package/dist/types/custom-elements.d.ts +0 -158
- package/dist/types/custom-elements.d.ts.map +0 -1
- package/dist/types/custom-elements.js +0 -8
- package/dist/types/custom-elements.js.map +0 -1
- package/dist/types/search.d.ts +0 -105
- package/dist/types/search.d.ts.map +0 -1
- package/dist/types/search.js +0 -12
- package/dist/types/search.js.map +0 -1
- package/dist/types/transform.d.ts +0 -48
- package/dist/types/transform.d.ts.map +0 -1
- package/dist/types/transform.js +0 -21
- package/dist/types/transform.js.map +0 -1
- package/src/i18n/README.md +0 -223
- package/src/i18n/index.ts +0 -26
- package/src/i18n/loader.ts +0 -156
- package/src/i18n/scripts/check-coverage.ts +0 -345
- package/src/i18n/scripts/scan-hardcoded.ts +0 -342
- package/src/i18n/simple-i18n.ts +0 -236
- package/src/i18n/translations/ar/common.json +0 -36
- package/src/i18n/translations/ar/toolkit.json +0 -48
- package/src/i18n/translations/ar/tools.json +0 -103
- package/src/i18n/translations/en/common.json +0 -36
- package/src/i18n/translations/en/toolkit.json +0 -48
- package/src/i18n/translations/en/tools.json +0 -103
- package/src/i18n/translations/es/common.json +0 -36
- package/src/i18n/translations/es/toolkit.json +0 -48
- package/src/i18n/translations/es/tools.json +0 -103
- package/src/i18n/translations/zh/common.json +0 -36
- package/src/i18n/translations/zh/toolkit.json +0 -48
- package/src/i18n/translations/zh/tools.json +0 -103
- package/src/i18n/types.ts +0 -66
- /package/{src → dist}/components/PiePreviewLayout.svelte +0 -0
- /package/{src → dist}/components/PiePreviewToggle.svelte +0 -0
- /package/{src → dist}/components/PieSpinner.svelte +0 -0
- /package/{src → dist}/components/ToolSettingsButton.svelte +0 -0
- /package/{src → dist}/components/ToolSettingsPanel.svelte +0 -0
- /package/{src → dist}/components/index.ts +0 -0
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"assessment": {
|
|
3
|
-
"title": "Evaluación",
|
|
4
|
-
"questions": {
|
|
5
|
-
"one": "{count} Pregunta",
|
|
6
|
-
"other": "{count} Preguntas"
|
|
7
|
-
},
|
|
8
|
-
"question_of": "Pregunta {current} de {total}",
|
|
9
|
-
"student_name": "Nombre del Estudiante",
|
|
10
|
-
"fullscreen": "Pantalla Completa",
|
|
11
|
-
"exit_fullscreen": "Salir de Pantalla Completa",
|
|
12
|
-
"enter_fullscreen_aria": "Entrar en pantalla completa",
|
|
13
|
-
"exit_fullscreen_aria": "Salir de pantalla completa"
|
|
14
|
-
},
|
|
15
|
-
"accommodation": {
|
|
16
|
-
"audio": "Audio",
|
|
17
|
-
"audio_aria": "Alternar audio/texto a voz",
|
|
18
|
-
"contrast": "Contraste",
|
|
19
|
-
"contrast_aria": "Alternar contraste de color"
|
|
20
|
-
},
|
|
21
|
-
"navigation": {
|
|
22
|
-
"back": "← Atrás",
|
|
23
|
-
"next": "Siguiente →",
|
|
24
|
-
"previous": "Anterior",
|
|
25
|
-
"submit": "Enviar",
|
|
26
|
-
"navigate_to": "Navegar a la pregunta {index}",
|
|
27
|
-
"section": "Sección"
|
|
28
|
-
},
|
|
29
|
-
"section": {
|
|
30
|
-
"title": "Estructura de Evaluación",
|
|
31
|
-
"add": "+ Agregar Sección",
|
|
32
|
-
"untitled": "Sección Sin Título",
|
|
33
|
-
"remove": "Eliminar sección",
|
|
34
|
-
"items": {
|
|
35
|
-
"one": "{count} ítem",
|
|
36
|
-
"other": "{count} ítems"
|
|
37
|
-
},
|
|
38
|
-
"aria_label": "Sección: {title}",
|
|
39
|
-
"drop_zone": "Soltar ítems aquí",
|
|
40
|
-
"unassigned": "Ítems No Asignados",
|
|
41
|
-
"unassigned_instruction": "Arrastra estos ítems a las secciones",
|
|
42
|
-
"unassigned_item_aria": "Pregunta no asignada: {title}"
|
|
43
|
-
},
|
|
44
|
-
"item": {
|
|
45
|
-
"load_error": "No se pudo cargar la pregunta.",
|
|
46
|
-
"untitled": "Sin Título"
|
|
47
|
-
}
|
|
48
|
-
}
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"tool": {
|
|
3
|
-
"calculator": "Calculadora",
|
|
4
|
-
"calculator_aria": "Abrir calculadora",
|
|
5
|
-
"graph": "Gráfico",
|
|
6
|
-
"graph_aria": "Abrir herramienta de gráficos",
|
|
7
|
-
"periodic_table": "Tabla Periódica",
|
|
8
|
-
"periodic_table_aria": "Abrir tabla periódica",
|
|
9
|
-
"protractor": "Transportador",
|
|
10
|
-
"protractor_aria": "Abrir transportador",
|
|
11
|
-
"ruler": "Regla",
|
|
12
|
-
"ruler_aria": "Abrir regla",
|
|
13
|
-
"line_reader": "Lector de Líneas",
|
|
14
|
-
"line_reader_aria": "Abrir lector de líneas",
|
|
15
|
-
"text_to_speech": "Texto a Voz",
|
|
16
|
-
"text_to_speech_aria": "Abrir texto a voz",
|
|
17
|
-
"color_scheme": "Esquema de Color",
|
|
18
|
-
"color_scheme_aria": "Abrir selector de esquema de color",
|
|
19
|
-
"annotation": "Anotación",
|
|
20
|
-
"annotation_aria": "Abrir barra de herramientas de anotación",
|
|
21
|
-
"answer_eliminator": "Eliminador de Respuestas"
|
|
22
|
-
},
|
|
23
|
-
"tts": {
|
|
24
|
-
"title": "Texto a Voz",
|
|
25
|
-
"close_aria": "Cerrar texto a voz",
|
|
26
|
-
"failed_init": "No se pudo inicializar TTS",
|
|
27
|
-
"initializing": "Inicializando...",
|
|
28
|
-
"select_text": "Selecciona texto en la página para escucharlo en voz alta.",
|
|
29
|
-
"selected": "{count} {character} seleccionados",
|
|
30
|
-
"speed": "Velocidad:",
|
|
31
|
-
"rate_slow": "Lento",
|
|
32
|
-
"rate_slower": "Más Lento",
|
|
33
|
-
"rate_normal": "Normal",
|
|
34
|
-
"rate_faster": "Más Rápido",
|
|
35
|
-
"rate_fast": "Rápido",
|
|
36
|
-
"rate_very_fast": "Muy Rápido",
|
|
37
|
-
"play": "Reproducir",
|
|
38
|
-
"pause": "Pausar",
|
|
39
|
-
"resume": "Reanudar",
|
|
40
|
-
"stop": "Detener",
|
|
41
|
-
"speaking": "Hablando...",
|
|
42
|
-
"paused": "Pausado"
|
|
43
|
-
},
|
|
44
|
-
"calculator": {
|
|
45
|
-
"title": "Calculadora",
|
|
46
|
-
"aria_label": "Herramienta de calculadora - Usa Alt+Flechas para mover, Escape para cerrar",
|
|
47
|
-
"settings": "Configuración de calculadora",
|
|
48
|
-
"close": "Cerrar calculadora",
|
|
49
|
-
"settings_title": "Configuración de Calculadora",
|
|
50
|
-
"type": "Tipo de Calculadora",
|
|
51
|
-
"basic": "Básica",
|
|
52
|
-
"scientific": "Científica",
|
|
53
|
-
"graphing": "Gráfica",
|
|
54
|
-
"configuration": "Configuración",
|
|
55
|
-
"config_help": "Estas configuraciones son útiles para pruebas. Pueden estar ocultas o restringidas para estudiantes en producción.",
|
|
56
|
-
"restricted_mode": "Modo Restringido (Modo de Prueba)",
|
|
57
|
-
"angle_mode": "Modo de Ángulo",
|
|
58
|
-
"degrees": "Grados",
|
|
59
|
-
"radians": "Radianes",
|
|
60
|
-
"qwerty": "Teclado QWERTY",
|
|
61
|
-
"screen_reader": "Soporte de Lector de Pantalla",
|
|
62
|
-
"accessible_display": "Pantalla Accesible",
|
|
63
|
-
"settings_menu": "Menú de Configuración",
|
|
64
|
-
"notes": "Notas",
|
|
65
|
-
"folders": "Carpetas",
|
|
66
|
-
"sliders": "Deslizadores",
|
|
67
|
-
"display_mode": "Modo de Visualización",
|
|
68
|
-
"classic": "Clásico",
|
|
69
|
-
"mathprint": "MathPrint"
|
|
70
|
-
},
|
|
71
|
-
"color_scheme": {
|
|
72
|
-
"title": "Esquema de Color",
|
|
73
|
-
"description": "Selecciona un esquema de color para mejorar la legibilidad y reducir la fatiga visual.",
|
|
74
|
-
"close_aria": "Cerrar selector de esquema de color",
|
|
75
|
-
"select_aria": "Seleccionar esquema de color",
|
|
76
|
-
"default": "Predeterminado",
|
|
77
|
-
"default_desc": "Colores estándar de PIE",
|
|
78
|
-
"black_on_white": "Negro sobre Blanco",
|
|
79
|
-
"black_on_white_desc": "Alto contraste para legibilidad",
|
|
80
|
-
"white_on_black": "Blanco sobre Negro",
|
|
81
|
-
"white_on_black_desc": "Alto contraste inverso",
|
|
82
|
-
"rose_on_green": "Rosa sobre Verde",
|
|
83
|
-
"rose_on_green_desc": "Reduce el resplandor",
|
|
84
|
-
"yellow_on_blue": "Amarillo sobre Azul",
|
|
85
|
-
"yellow_on_blue_desc": "Alternativa de alto contraste",
|
|
86
|
-
"black_on_rose": "Negro sobre Rosa",
|
|
87
|
-
"black_on_rose_desc": "Fondo cálido",
|
|
88
|
-
"light_gray_on_dark_gray": "Gris Claro sobre Gris Oscuro",
|
|
89
|
-
"light_gray_on_dark_gray_desc": "Brillo reducido"
|
|
90
|
-
},
|
|
91
|
-
"annotation": {
|
|
92
|
-
"yellow_aria": "Resaltado amarillo",
|
|
93
|
-
"pink_aria": "Resaltado rosa",
|
|
94
|
-
"blue_aria": "Resaltado azul",
|
|
95
|
-
"green_aria": "Resaltado verde",
|
|
96
|
-
"read_selection": "Leer selección",
|
|
97
|
-
"translation": "Solicitar traducción",
|
|
98
|
-
"clear": "Limpiar resaltados"
|
|
99
|
-
},
|
|
100
|
-
"ruler": {
|
|
101
|
-
"switched_to": "Cambiado a {unit}"
|
|
102
|
-
}
|
|
103
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"common": {
|
|
3
|
-
"save": "保存",
|
|
4
|
-
"cancel": "取消",
|
|
5
|
-
"close": "关闭",
|
|
6
|
-
"loading": "加载中...",
|
|
7
|
-
"error": "错误",
|
|
8
|
-
"retry": "重试",
|
|
9
|
-
"back": "返回",
|
|
10
|
-
"next": "下一步",
|
|
11
|
-
"previous": "上一步",
|
|
12
|
-
"submit": "提交",
|
|
13
|
-
"continue": "继续",
|
|
14
|
-
"finish": "完成",
|
|
15
|
-
"yes": "是",
|
|
16
|
-
"no": "否",
|
|
17
|
-
"ok": "确定",
|
|
18
|
-
"settings": "设置",
|
|
19
|
-
"language": "语言",
|
|
20
|
-
"theme": "主题",
|
|
21
|
-
"settings_aria": "打开设置菜单",
|
|
22
|
-
"rtl_notice": "RTL文本方向已激活",
|
|
23
|
-
"question": {
|
|
24
|
-
"one": "问题",
|
|
25
|
-
"other": "问题"
|
|
26
|
-
},
|
|
27
|
-
"item": {
|
|
28
|
-
"one": "项目",
|
|
29
|
-
"other": "项目"
|
|
30
|
-
},
|
|
31
|
-
"character": {
|
|
32
|
-
"one": "字符",
|
|
33
|
-
"other": "字符"
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"assessment": {
|
|
3
|
-
"title": "评估",
|
|
4
|
-
"questions": {
|
|
5
|
-
"one": "{count} 个问题",
|
|
6
|
-
"other": "{count} 个问题"
|
|
7
|
-
},
|
|
8
|
-
"question_of": "问题 {current}/{total}",
|
|
9
|
-
"student_name": "学生姓名",
|
|
10
|
-
"fullscreen": "全屏",
|
|
11
|
-
"exit_fullscreen": "退出全屏",
|
|
12
|
-
"enter_fullscreen_aria": "进入全屏",
|
|
13
|
-
"exit_fullscreen_aria": "退出全屏"
|
|
14
|
-
},
|
|
15
|
-
"accommodation": {
|
|
16
|
-
"audio": "音频",
|
|
17
|
-
"audio_aria": "切换音频/文字转语音",
|
|
18
|
-
"contrast": "对比度",
|
|
19
|
-
"contrast_aria": "切换颜色对比度"
|
|
20
|
-
},
|
|
21
|
-
"navigation": {
|
|
22
|
-
"back": "← 返回",
|
|
23
|
-
"next": "下一步 →",
|
|
24
|
-
"previous": "上一步",
|
|
25
|
-
"submit": "提交",
|
|
26
|
-
"navigate_to": "导航到问题 {index}",
|
|
27
|
-
"section": "部分"
|
|
28
|
-
},
|
|
29
|
-
"section": {
|
|
30
|
-
"title": "评估结构",
|
|
31
|
-
"add": "+ 添加部分",
|
|
32
|
-
"untitled": "无标题部分",
|
|
33
|
-
"remove": "删除部分",
|
|
34
|
-
"items": {
|
|
35
|
-
"one": "{count} 项",
|
|
36
|
-
"other": "{count} 项"
|
|
37
|
-
},
|
|
38
|
-
"aria_label": "部分:{title}",
|
|
39
|
-
"drop_zone": "将项目拖到这里",
|
|
40
|
-
"unassigned": "未分配项目",
|
|
41
|
-
"unassigned_instruction": "将这些项目拖到部分中",
|
|
42
|
-
"unassigned_item_aria": "未分配的问题:{title}"
|
|
43
|
-
},
|
|
44
|
-
"item": {
|
|
45
|
-
"load_error": "无法加载问题。",
|
|
46
|
-
"untitled": "无标题"
|
|
47
|
-
}
|
|
48
|
-
}
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"tool": {
|
|
3
|
-
"calculator": "计算器",
|
|
4
|
-
"calculator_aria": "打开计算器",
|
|
5
|
-
"graph": "图表",
|
|
6
|
-
"graph_aria": "打开图表工具",
|
|
7
|
-
"periodic_table": "元素周期表",
|
|
8
|
-
"periodic_table_aria": "打开元素周期表",
|
|
9
|
-
"protractor": "量角器",
|
|
10
|
-
"protractor_aria": "打开量角器",
|
|
11
|
-
"ruler": "尺子",
|
|
12
|
-
"ruler_aria": "打开尺子",
|
|
13
|
-
"line_reader": "行阅读器",
|
|
14
|
-
"line_reader_aria": "打开行阅读器",
|
|
15
|
-
"text_to_speech": "文字转语音",
|
|
16
|
-
"text_to_speech_aria": "打开文字转语音",
|
|
17
|
-
"color_scheme": "配色方案",
|
|
18
|
-
"color_scheme_aria": "打开配色方案选择器",
|
|
19
|
-
"annotation": "注释",
|
|
20
|
-
"annotation_aria": "打开注释工具栏",
|
|
21
|
-
"answer_eliminator": "答案消除器"
|
|
22
|
-
},
|
|
23
|
-
"tts": {
|
|
24
|
-
"title": "文字转语音",
|
|
25
|
-
"close_aria": "关闭文字转语音",
|
|
26
|
-
"failed_init": "初始化 TTS 失败",
|
|
27
|
-
"initializing": "初始化中...",
|
|
28
|
-
"select_text": "选择页面上的文本以朗读。",
|
|
29
|
-
"selected": "已选择 {count} {character}",
|
|
30
|
-
"speed": "速度:",
|
|
31
|
-
"rate_slow": "慢",
|
|
32
|
-
"rate_slower": "较慢",
|
|
33
|
-
"rate_normal": "正常",
|
|
34
|
-
"rate_faster": "较快",
|
|
35
|
-
"rate_fast": "快",
|
|
36
|
-
"rate_very_fast": "很快",
|
|
37
|
-
"play": "播放",
|
|
38
|
-
"pause": "暂停",
|
|
39
|
-
"resume": "继续",
|
|
40
|
-
"stop": "停止",
|
|
41
|
-
"speaking": "朗读中...",
|
|
42
|
-
"paused": "已暂停"
|
|
43
|
-
},
|
|
44
|
-
"calculator": {
|
|
45
|
-
"title": "计算器",
|
|
46
|
-
"aria_label": "计算器工具 - 使用 Alt+箭头键移动,Escape 关闭",
|
|
47
|
-
"settings": "计算器设置",
|
|
48
|
-
"close": "关闭计算器",
|
|
49
|
-
"settings_title": "计算器设置",
|
|
50
|
-
"type": "计算器类型",
|
|
51
|
-
"basic": "基础",
|
|
52
|
-
"scientific": "科学",
|
|
53
|
-
"graphing": "图形",
|
|
54
|
-
"configuration": "配置",
|
|
55
|
-
"config_help": "这些设置对测试很有用。在生产环境中可能对学生隐藏或限制。",
|
|
56
|
-
"restricted_mode": "受限模式(测试模式)",
|
|
57
|
-
"angle_mode": "角度模式",
|
|
58
|
-
"degrees": "度数",
|
|
59
|
-
"radians": "弧度",
|
|
60
|
-
"qwerty": "QWERTY 键盘",
|
|
61
|
-
"screen_reader": "屏幕阅读器支持",
|
|
62
|
-
"accessible_display": "无障碍显示",
|
|
63
|
-
"settings_menu": "设置菜单",
|
|
64
|
-
"notes": "笔记",
|
|
65
|
-
"folders": "文件夹",
|
|
66
|
-
"sliders": "滑块",
|
|
67
|
-
"display_mode": "显示模式",
|
|
68
|
-
"classic": "经典",
|
|
69
|
-
"mathprint": "MathPrint"
|
|
70
|
-
},
|
|
71
|
-
"color_scheme": {
|
|
72
|
-
"title": "配色方案",
|
|
73
|
-
"description": "选择配色方案以提高可读性并减少眼睛疲劳。",
|
|
74
|
-
"close_aria": "关闭配色方案选择器",
|
|
75
|
-
"select_aria": "选择配色方案",
|
|
76
|
-
"default": "默认",
|
|
77
|
-
"default_desc": "标准 PIE 颜色",
|
|
78
|
-
"black_on_white": "黑底白字",
|
|
79
|
-
"black_on_white_desc": "高对比度便于阅读",
|
|
80
|
-
"white_on_black": "白底黑字",
|
|
81
|
-
"white_on_black_desc": "反向高对比度",
|
|
82
|
-
"rose_on_green": "玫瑰色底绿字",
|
|
83
|
-
"rose_on_green_desc": "减少眩光",
|
|
84
|
-
"yellow_on_blue": "黄底蓝字",
|
|
85
|
-
"yellow_on_blue_desc": "高对比度替代方案",
|
|
86
|
-
"black_on_rose": "黑底玫瑰色字",
|
|
87
|
-
"black_on_rose_desc": "温暖的背景",
|
|
88
|
-
"light_gray_on_dark_gray": "浅灰底深灰字",
|
|
89
|
-
"light_gray_on_dark_gray_desc": "降低亮度"
|
|
90
|
-
},
|
|
91
|
-
"annotation": {
|
|
92
|
-
"yellow_aria": "黄色高亮",
|
|
93
|
-
"pink_aria": "粉色高亮",
|
|
94
|
-
"blue_aria": "蓝色高亮",
|
|
95
|
-
"green_aria": "绿色高亮",
|
|
96
|
-
"read_selection": "朗读选择",
|
|
97
|
-
"translation": "翻译请求",
|
|
98
|
-
"clear": "清除高亮"
|
|
99
|
-
},
|
|
100
|
-
"ruler": {
|
|
101
|
-
"switched_to": "已切换到 {unit}"
|
|
102
|
-
}
|
|
103
|
-
}
|
package/src/i18n/types.ts
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* I18n Type Definitions
|
|
3
|
-
*
|
|
4
|
-
* Shared types for internationalization system.
|
|
5
|
-
* Defined in players-shared to avoid circular dependencies.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Plural translation forms
|
|
10
|
-
* Follows ICU MessageFormat plural rules
|
|
11
|
-
*/
|
|
12
|
-
export interface PluralTranslation {
|
|
13
|
-
zero?: string;
|
|
14
|
-
one: string;
|
|
15
|
-
few?: string;
|
|
16
|
-
many?: string;
|
|
17
|
-
other: string;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Translation bundle structure
|
|
22
|
-
*/
|
|
23
|
-
export interface TranslationBundle {
|
|
24
|
-
locale: string;
|
|
25
|
-
translations: Record<string, string | PluralTranslation>;
|
|
26
|
-
direction: "ltr" | "rtl";
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* I18n configuration
|
|
31
|
-
*/
|
|
32
|
-
export interface I18nConfig {
|
|
33
|
-
/** Initial locale (default: browser language) */
|
|
34
|
-
locale?: string;
|
|
35
|
-
|
|
36
|
-
/** Fallback locale (default: 'en') */
|
|
37
|
-
fallbackLocale?: string;
|
|
38
|
-
|
|
39
|
-
/** Translation loader function */
|
|
40
|
-
loadTranslations?: (locale: string) => Promise<TranslationBundle>;
|
|
41
|
-
|
|
42
|
-
/** Bundled translations (for hybrid loading) */
|
|
43
|
-
bundledTranslations?: Record<string, TranslationBundle>;
|
|
44
|
-
|
|
45
|
-
/** Missing key handler */
|
|
46
|
-
onMissingKey?: (key: string, locale: string) => void;
|
|
47
|
-
|
|
48
|
-
/** Debug mode */
|
|
49
|
-
debug?: boolean;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* I18nService API contract
|
|
54
|
-
*/
|
|
55
|
-
export interface I18nServiceApi {
|
|
56
|
-
initialize(config: I18nConfig): Promise<void>;
|
|
57
|
-
t(key: string, params?: Record<string, any>): string;
|
|
58
|
-
tn(key: string, count: number, params?: Record<string, any>): string;
|
|
59
|
-
getLocale(): string;
|
|
60
|
-
setLocale(locale: string): Promise<void>;
|
|
61
|
-
getDirection(): "ltr" | "rtl";
|
|
62
|
-
getAvailableLocales(): string[];
|
|
63
|
-
isLocaleLoaded(locale: string): boolean;
|
|
64
|
-
subscribe(listener: () => void): () => void;
|
|
65
|
-
hasKey(key: string): boolean;
|
|
66
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|