epubcheck-standalone-cli 0.0.0-oidc-bootstrap → 5.3.0-build2

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.
@@ -0,0 +1,3 @@
1
+ import type { MessageKey } from "./messages.js";
2
+ export type LocaleOverride = Partial<Record<MessageKey, string>>;
3
+ export declare const LOCALE_MESSAGES: Record<string, LocaleOverride>;
@@ -0,0 +1,346 @@
1
+ export const LOCALE_MESSAGES = {
2
+ "da": {
3
+ "no_errors__or_warnings": "EPUB-filen indeholder ingen fejl eller advarsler. Filen er valid.",
4
+ "there_were_errors": "\nEPUBCheck afsluttet med fejl!",
5
+ "there_were_warnings": "\nEPUBCheck afsluttet med advarsler!",
6
+ "messages": "Meddelelser",
7
+ "counter_fatal_zero": "0 fatale fejl",
8
+ "counter_fatal_one": "1 fatal fejl",
9
+ "counter_fatal_many": "%1$d fatale fejl",
10
+ "counter_error_zero": "0 fejl",
11
+ "counter_error_one": "1 fejl",
12
+ "counter_error_many": "%1$d fejl",
13
+ "counter_warn_zero": "0 advarsler",
14
+ "counter_warn_one": "1 advarsel",
15
+ "counter_warn_many": "%1$d advarsler",
16
+ "counter_info_zero": "0 info-beskeder",
17
+ "counter_info_one": "1 info-besked",
18
+ "counter_info_many": "%1$d info-beskeder",
19
+ "counter_usage_zero": "0 brugs-beskeder",
20
+ "counter_usage_one": "1 brugs-beskeder",
21
+ "counter_usage_many": "%1$d brugs-beskeder",
22
+ "display_help": "-help viser hjælp til EPUBCheck.",
23
+ "argument_needed": "Mindst ét parameter forventes.",
24
+ "no_file_specified": "Ingen fil blev ikke angivet i parametrene. EPUBCheck afsluttes.",
25
+ "mode_version_ignored": "Parametrene --mode og -v ignoreres for EPUB-filer. Værdierne hentes fra EPUB.",
26
+ "mode_required": "Parameter -modus er obligatorisk for filer, der ikke er EPUB. Standardversion til validering er 3.0.",
27
+ "validating_version_message": "Validerer med EPUB version %1$ss regler.",
28
+ "output_type_conflict": "Kun ét output-format kan angives ad gangen.",
29
+ "file_not_found": "Filen \"%1$s\" kunne ikke findes.",
30
+ "directory_not_found": "Mappen \"%1$s\" kunne ikke findes.",
31
+ "deleting_archive": "\nEPUB-oprettelse afbrudt pga. fejl.\n",
32
+ "epubcheck_completed": "EPUBCheck er afsluttet.",
33
+ "error_creating_config_file": "Ved oprettelse af konfigurationsfilen \"%1$s\" opstod der fejl.",
34
+ "expected_message_filename": "Den brugerspecifikke fil til overskrivning af advarsler og fejlmeddelelser var forventet, men fandt \"%1$s\"",
35
+ "unrecognized_argument": "Ukendt parameter: \"%1$s\"",
36
+ "incorrect_locale": "Værdien af parameteret --local er ugyldig: \"%1$s\".",
37
+ "missing_locale": "Ingen værdi blev overført til parameteret --locale."
38
+ },
39
+ "de": {
40
+ "no_errors__or_warnings": "Das EPUB enthält keine Fehler oder Warnungen.\nEs ist valide.",
41
+ "there_were_errors": "\nEPUBCheck mit Fehlern abgeschlossen",
42
+ "there_were_warnings": "\nEPUBCheck mit Warnungen abgeschlossen.",
43
+ "messages": "Meldungen",
44
+ "counter_fatal_zero": "0 Schwerwiegende Fehler",
45
+ "counter_fatal_one": "1 Schwerwiegender Fehler",
46
+ "counter_fatal_many": "%1$d Schwerwiegende Fehler",
47
+ "counter_error_zero": "0 Fehler",
48
+ "counter_error_one": "1 Fehler",
49
+ "counter_error_many": "%1$d Fehler",
50
+ "counter_warn_zero": "0 Warnungen",
51
+ "counter_warn_one": "1 Warnung",
52
+ "counter_warn_many": "%1$d Warnungen",
53
+ "counter_info_zero": "0 Informationen",
54
+ "counter_info_one": "1 Information",
55
+ "counter_info_many": "%1$d Informationen",
56
+ "counter_usage_zero": "0 Ratschläge",
57
+ "counter_usage_one": "1 Ratschlag",
58
+ "counter_usage_many": "%1$d Ratschläge",
59
+ "display_help": "-help zeigt die Hilfe zu EPUBCheck an.",
60
+ "argument_needed": "Es wird mindestens ein Parameter erwartet!",
61
+ "no_file_specified": "In den Parametern wurde keine Datei spezifiziert. EPUBCheck wird beendet!",
62
+ "mode_version_ignored": "Die Parameter --mode und -v werden für EPUB-Dateien ignoriert. Die Werte werden aus dem EPUB entnommen.",
63
+ "mode_required": "Parameter --mode ist für Dateien die kein EPUB sind zwingend erforderlich. Die Standard-Version zur Validierung ist 3.0",
64
+ "validating_version_message": "Verwendung der EPUB %1$s Prüfungen",
65
+ "output_type_conflict": "Es kann nur ein Ausgabeformat gleichzeitig angegeben werden!",
66
+ "file_not_found": "Datei wurde nicht gefunden: \"%1$s\"",
67
+ "directory_not_found": "Verzeichnis wurde nicht gefunden: \"%1$s\"",
68
+ "deleting_archive": "\nEPUB-Erstellung abgebrochen, weil Fehler aufgetreten sind.\n",
69
+ "epubcheck_completed": "EPUBCheck abgeschlossen",
70
+ "error_creating_config_file": "Fehler beim Erstellen der Konfigurationsdatei: \"%1$s\"",
71
+ "expected_message_filename": "Es wird die benutzerspezifische Datei zum Überschreiben von Warnungen und Fehlermeldungen erwartet, gefunden wurde aber \"%1$s\"",
72
+ "unrecognized_argument": "Unbekannter Parameter: \"%1$s\"",
73
+ "incorrect_locale": "Der Wert des --locale Parameters ist ungültig: \"%1$s\"",
74
+ "missing_locale": "Dem --locale Parameter wurde kein Wert übergeben."
75
+ },
76
+ "es": {
77
+ "no_errors__or_warnings": "No se han detectado errores o advertencias.",
78
+ "there_were_errors": "\nPrueba finalizada con errores",
79
+ "there_were_warnings": "\nPrueba finalizada con advertencias",
80
+ "messages": "Mensajes",
81
+ "counter_fatal_zero": "0 errores fatales",
82
+ "counter_fatal_one": "1 error fatal",
83
+ "counter_fatal_many": "%1$d errores fatales",
84
+ "counter_error_zero": "0 errores",
85
+ "counter_error_many": "%1$d errores",
86
+ "counter_warn_zero": "0 advertencias",
87
+ "counter_warn_one": "1 advertencia",
88
+ "counter_warn_many": "%1$d advertencias",
89
+ "counter_info_zero": "0 indicaciones",
90
+ "counter_info_one": "1 indicación",
91
+ "counter_info_many": "%1$d indicaciones",
92
+ "counter_usage_zero": "0 usos",
93
+ "counter_usage_one": "1 uso",
94
+ "counter_usage_many": "%1$d usos",
95
+ "display_help": "-help muestra la ayuda",
96
+ "argument_needed": "Se esperaba al menos un argumento",
97
+ "no_file_specified": "No se ha especificado un archivo en el argumento. Saliendo.",
98
+ "mode_version_ignored": "Los argumentos modo y versión se ignoran para epubs. Se extraen de los archivos.",
99
+ "mode_required": "Mode es obligatorio para archivos que no sean epub. La versión actual es 3.0.",
100
+ "validating_version_message": "Validación usando la versión de reglas epub %1$s.",
101
+ "output_type_conflict": "Solo se puede especificar un formato de salida cada vez.",
102
+ "file_not_found": "No se encuentra el archivo: \"%1$s\"",
103
+ "directory_not_found": "No se encuentra el directorio: \"%1$s\"",
104
+ "deleting_archive": "\nSe ha cancelado la creación del epub porque se han detectado errores.\n",
105
+ "epubcheck_completed": "EPUBCheck completado",
106
+ "error_creating_config_file": "Error al crear el archivo de configuración \"%1$s\".",
107
+ "expected_message_filename": "Se esperaba nombre de archivo personalizado, pero se ha mostrado \"%1$s\"",
108
+ "unrecognized_argument": "Argumento desconocido: \"%1$s\"",
109
+ "incorrect_locale": "El argumento \"%1$s\" para la opción --locale no es correcto.",
110
+ "missing_locale": "No existe el argumento para la opción --locale."
111
+ },
112
+ "fr": {
113
+ "no_errors__or_warnings": "Aucune erreur ou avertissement détecté.",
114
+ "there_were_errors": "\nVérification terminée avec des erreurs",
115
+ "there_were_warnings": "\nVérification terminée avec des avertissements",
116
+ "counter_fatal_zero": "0 fatale",
117
+ "counter_fatal_one": "1 fatale",
118
+ "counter_fatal_many": "%1$d fatales",
119
+ "counter_error_zero": "0 erreur",
120
+ "counter_error_one": "1 erreur",
121
+ "counter_error_many": "%1$d erreurs",
122
+ "counter_warn_zero": "0 avertissement",
123
+ "counter_warn_one": "1 avertissement",
124
+ "counter_warn_many": "%1$d avertissements",
125
+ "counter_info_zero": "0 info",
126
+ "counter_usage_zero": "0 usage",
127
+ "display_help": "-help affiche l’aide",
128
+ "argument_needed": "Un argument au moins est attendu",
129
+ "no_file_specified": "Aucun fichier n’a été précisé dans les arguments. Sortie.",
130
+ "mode_version_ignored": "Les arguments de mode et de version sont ignorés pour les epubs. Ils sont récupérés dans les fichiers.",
131
+ "mode_required": "Argument mode obligatoire pour les fichiers non-epubs. La version par défault est 3.0.",
132
+ "validating_version_message": "Vérifications faites en utilisant les règles de la version epub %1$s.",
133
+ "output_type_conflict": "Seul un type de format de sortie peut être précisé à la fois.",
134
+ "file_not_found": "Fichier introuvable : \"%1$s\"",
135
+ "directory_not_found": "Répertoire non trouvé : \"%1$s\"",
136
+ "deleting_archive": "\nLa création de l’epub a été annulée suite aux erreurs détectées.\n",
137
+ "epubcheck_completed": "EPUBCheck terminé",
138
+ "error_creating_config_file": "Erreur lors de la création du fichier de configuration \"%1$s\".",
139
+ "expected_message_filename": "Nom du fichier de configuration personnalisée attendu, mais \"%1$s\" fourni",
140
+ "unrecognized_argument": "Argument inconnu: \"%1$s\"",
141
+ "incorrect_locale": "L’argument \"%1$s\" pour l’option --locale est incorrect.",
142
+ "missing_locale": "L’argument pour l’option --locale est manquant."
143
+ },
144
+ "it": {
145
+ "no_errors__or_warnings": "Non sono stati trovati errori o potenziali errori.",
146
+ "there_were_errors": "\nSono stati rilevati errori.",
147
+ "there_were_warnings": "\nSono stati rilevati potenziali errori.",
148
+ "messages": "Messaggi",
149
+ "counter_fatal_zero": "0 errori fatali",
150
+ "counter_fatal_one": "1 errore fatale",
151
+ "counter_fatal_many": "%1$d errori fatali",
152
+ "counter_error_zero": "0 errori",
153
+ "counter_error_one": "1 errore",
154
+ "counter_error_many": "%1$d errori",
155
+ "counter_warn_zero": "0 warning",
156
+ "counter_warn_many": "%1$d warning",
157
+ "counter_info_zero": "0 info",
158
+ "counter_info_many": "%1$d info",
159
+ "counter_usage_zero": "0 usi",
160
+ "counter_usage_one": "1 uso",
161
+ "counter_usage_many": "%1$d usi",
162
+ "display_help": "-help mosta la guida",
163
+ "argument_needed": "È richiesto almeno un argomento",
164
+ "no_file_specified": "Nessun file specificato negli argomenti. Esco.",
165
+ "mode_version_ignored": "Gli argomenti relativi alla modalità e alla versione vengono ignorati per gli epub. Vengono recuperati dal file stesso.",
166
+ "mode_required": "Il parametro \"mode\" è richiesto se non si indica un file EPUB. Il valore predefinito per la versione è 3.0.",
167
+ "validating_version_message": "Controllo secondo le regole per EPUB versione %1$s.",
168
+ "output_type_conflict": "Può essere specificato un solo formato di output.",
169
+ "file_not_found": "File non trovato: \"%1$s\"",
170
+ "directory_not_found": "Directory not trovata: \"%1$s\"",
171
+ "deleting_archive": "\nCreazione del file EPUB terminata a causa di errori rilevati.\n",
172
+ "epubcheck_completed": "Controllo completato.",
173
+ "error_creating_config_file": "Errore nella creazione del file di configurazione \"%1$s\".",
174
+ "expected_message_filename": "Era atteso un file di messaggi personalizzati, invece è stato trovato \"%1$s\".",
175
+ "unrecognized_argument": "Argumento non riconosciuto: \"%1$s\".",
176
+ "incorrect_locale": "L'argomento \"%1$s\" sull'opzione --locale non è corretto.",
177
+ "missing_locale": "Manca l'argomento per l'opzione --locale."
178
+ },
179
+ "ja": {
180
+ "no_errors__or_warnings": "エラーも警告も検出されませんでした.",
181
+ "there_were_errors": "\nチェックは終了しましたがエラーが検出されました",
182
+ "there_were_warnings": "\nチェックは終了しましたが警告が検出されました",
183
+ "messages": "メッセージ",
184
+ "counter_fatal_zero": "0 件の致命的エラー",
185
+ "counter_fatal_one": "1 件の致命的エラー",
186
+ "counter_fatal_many": "%1$d 件の致命的エラー",
187
+ "counter_error_zero": "0 件のエラー",
188
+ "counter_error_one": "1 件のエラー",
189
+ "counter_error_many": "%1$d 件のエラー",
190
+ "counter_warn_zero": "0 件の警告",
191
+ "counter_warn_one": "1 件の警告",
192
+ "counter_warn_many": "%1$d 件の警告",
193
+ "counter_info_zero": "0 件の情報",
194
+ "counter_info_one": "1 件の情報",
195
+ "counter_info_many": "%1$d 件の情報",
196
+ "counter_usage_zero": "0 件の利用法情報",
197
+ "counter_usage_one": "1 件の利用法情報",
198
+ "counter_usage_many": "%1$d 件の利用法情報",
199
+ "display_help": "-help ヘルプメッセージを表示します",
200
+ "argument_needed": "少なくとも1つの引数が必要です",
201
+ "no_file_specified": "引数としてファイルが指定されていません. 終了します.",
202
+ "mode_version_ignored": "mode と version の引数はepubファイル指定時は無視します. ファイルより取り出します.",
203
+ "mode_required": "非epubファイルには --mode オプションが必要です. デフォルトの version は 3.0 です.",
204
+ "validating_version_message": "EPUB version %1$s のルールを使って検証します.",
205
+ "output_type_conflict": "一度に指定できる出力フォーマットは1つのみです.",
206
+ "file_not_found": "ファイルが見つかりませんでした: \"%1$s\"",
207
+ "directory_not_found": "ディレクトリが見つかりませんでした: \"%1$s\"",
208
+ "deleting_archive": "\nエラーの検出のためEPUBの生成を中止しました.\n",
209
+ "epubcheck_completed": "EPUBCheck 完了",
210
+ "error_creating_config_file": "設定ファイル \"%1$s\" の作成に失敗しました.",
211
+ "expected_message_filename": "カスタムメッセージファイル名として指定されている引数が \"%1$s\" となっていました",
212
+ "unrecognized_argument": "認識できない引数です: \"%1$s\"",
213
+ "incorrect_locale": "--localeオプションの引数 \"%1$s\" は正しくありません.",
214
+ "missing_locale": "--locale オプションの引数がありませんでした."
215
+ },
216
+ "ko-KR": {
217
+ "no_errors__or_warnings": "오류 또는 경고가 감지되지 않았습니다.",
218
+ "there_were_errors": "검사가 종료되었으나 오류가 발견되었습니다.",
219
+ "there_were_warnings": "검사가 종료되었으나 경고가 발견되었습니다.",
220
+ "messages": "메시지",
221
+ "counter_fatal_zero": "0건의 치명적인 오류",
222
+ "counter_fatal_one": "1건의 치명적인 오류",
223
+ "counter_fatal_many": "%1$d건의 치명적인 오류",
224
+ "counter_error_zero": "0건의 오류",
225
+ "counter_error_one": "1건의 오류",
226
+ "counter_error_many": "%1$d건의 오류",
227
+ "counter_warn_zero": "0건의 경고",
228
+ "counter_warn_one": "1건의 경고",
229
+ "counter_warn_many": "%1$d건의 경고",
230
+ "counter_info_zero": "0건의 정보",
231
+ "counter_info_one": "1건의 정보",
232
+ "counter_info_many": "%1$d건의 정보",
233
+ "counter_usage_zero": "0건의 이용 방법 정보",
234
+ "counter_usage_one": "1건의 이용 방법 정보",
235
+ "counter_usage_many": "%1$d건의 이용방법 정보",
236
+ "display_help": "-help 도움말 메시지를 표시합니다",
237
+ "argument_needed": "적어도 하나의 인자가 필요합니다.",
238
+ "no_file_specified": "파일이 지정되지 않아 검사를 종료합니다.",
239
+ "mode_version_ignored": "지정된 mode 및 version 인자는 무시합니다. EPUB 파일에 있는 정보를 사용합니다.",
240
+ "mode_required": "EPUB 파일이 아닌 경우 mode 인자가 필요합니다. 기본 버전은 3.0입니다.",
241
+ "validating_version_message": "EPUB 버전 %1$s의 규칙을 사용해 유효성 검사를 진행합니다.",
242
+ "output_type_conflict": "output format은 한번에 하나씩만 지정할 수 있습니다.",
243
+ "file_not_found": "\"%1$s\" 파일을 찾을 수 없습니다.",
244
+ "directory_not_found": "\"%1$s\" 폴더를 찾을 수 없습니다.",
245
+ "deleting_archive": "오류가 확인되어 EPUB 생성이 취소되었습니다.",
246
+ "epubcheck_completed": "유효성 검사를 완료하였습니다.",
247
+ "error_creating_config_file": "설정 파일 \"%1$s\"을(를) 만드는 중에 오류가 발생했습니다.",
248
+ "expected_message_filename": "사용자 지정 메시지 파일 이름이 예상되었지만, \"%1$s\"가(이) 발견되었습니다.",
249
+ "unrecognized_argument": "알수 없는 인자 \"%1$s\"이(가) 발견되었습니다.",
250
+ "incorrect_locale": "\"%1$s\" 인자를 --locale 옵션에 잘못 지정했습니다.",
251
+ "missing_locale": "--locale 옵션에 대한 인자가 누락되었습니다."
252
+ },
253
+ "nl": {
254
+ "no_errors__or_warnings": "Geen fouten of waarschuwingen gedetecteerd.",
255
+ "there_were_errors": "\nDe check heeft fouten opgeleverd.",
256
+ "there_were_warnings": "\nDe check heeft waarschuwingen opgeleverd.",
257
+ "display_help": "-help geeft de hulpboodschappen weer",
258
+ "argument_needed": "Er wordt tenminste 1 argument verwacht",
259
+ "no_file_specified": "Geen bestand opgegeven in de argumenten. Het programma wordt afgesloten.",
260
+ "mode_version_ignored": "Voor epubs worden de argumenten \"mode\" en \"version\" genegeerd. Deze worden uit de bestanden zelf afgeleid.",
261
+ "mode_required": "Het argument \"mode\" is verplicht voor niet-epub bestanden. Standaardversie is 3.0.",
262
+ "validating_version_message": "Validatie geschiedt op basis van de regels van EPUB versie %1$s.",
263
+ "output_type_conflict": "U kunt slechts 1 uitvoerformaat per keer specificeren.",
264
+ "file_not_found": "Bestand niet gevonden: \"%1$s\"",
265
+ "deleting_archive": "\nHet vervaardigen van uw epub is afgebroken wegens ontdekte fouten.\n",
266
+ "epubcheck_completed": "EPUBCheck is klaar",
267
+ "error_creating_config_file": "Foutmelding bij het aanmaken van het configuratiebestand \"%1$s\".",
268
+ "expected_message_filename": "Er werd een bestandsnaam met een aangepaste boodschap verwacht, maar \"%1$s\" is aangetroffen",
269
+ "unrecognized_argument": "Dit argument werd niet herkend: \"%1$s\""
270
+ },
271
+ "pt-BR": {
272
+ "no_errors__or_warnings": "Nenhum erro ou advertência detectados.",
273
+ "there_were_errors": "\nVerificação concluída com erros",
274
+ "there_were_warnings": "\nVerificação concluída com advertências",
275
+ "messages": "Mensagens",
276
+ "counter_fatal_zero": "0 erros fatais",
277
+ "counter_fatal_one": "1 erro fatal",
278
+ "counter_fatal_many": "%1$d erros fatais",
279
+ "counter_error_zero": "0 erros",
280
+ "counter_error_one": "1 erro",
281
+ "counter_error_many": "%1$d erros",
282
+ "counter_warn_zero": "0 advertências",
283
+ "counter_warn_one": "1 advertência",
284
+ "counter_warn_many": "%1$d advertências",
285
+ "counter_info_zero": "0 informações",
286
+ "counter_info_one": "1 informação",
287
+ "counter_info_many": "%1$d informações",
288
+ "counter_usage_zero": "0 informações sobre o uso",
289
+ "counter_usage_one": "1 informação sobre o uso",
290
+ "counter_usage_many": "%1$d informações sobre o uso",
291
+ "display_help": "--help exibe ajuda",
292
+ "argument_needed": "Pelo menos um argumento é esperado",
293
+ "no_file_specified": "Nenhum arquivo especificado nos argumentos. Saindo.",
294
+ "mode_version_ignored": "Os argumentos de modo e versão são ignorados para epubs. Eles são obtidos a partir dos arquivos.",
295
+ "mode_required": "Opção --mode requerida para arquivos que não sejam epub. A versão padrão é 3.0.",
296
+ "validating_version_message": "Validando usando as regras da versão EPUB %1$s.",
297
+ "output_type_conflict": "Apenas um formato de saída pode ser especificado por vez.",
298
+ "file_not_found": "Arquivo não encontrado: \"%1$s\"",
299
+ "directory_not_found": "Diretório não encontrado: \"%1$s\"",
300
+ "deleting_archive": "\nCriação de epub cancelada devido à detecção de erros.\n",
301
+ "epubcheck_completed": "EPUBCheck finalizado",
302
+ "error_creating_config_file": "Erro criando arquivo de configuração \"%1$s\".",
303
+ "expected_message_filename": "Esperado o nome do arquivo de Mensagem Personalizada, mas encontrou \"%1$s\"",
304
+ "unrecognized_argument": "Argumento não reconhecido: \"%1$s\"",
305
+ "incorrect_locale": "O argumento \"%1$s\" para a opção --locale está incorreto.",
306
+ "missing_locale": "O argumento para opção --locale está ausente."
307
+ },
308
+ "zh-TW": {
309
+ "no_errors__or_warnings": "沒偵測到任何錯誤以及警告訊息。",
310
+ "there_were_errors": "\n檢查完畢,發現錯誤",
311
+ "there_were_warnings": "\n檢查完畢,發現警告訊息",
312
+ "messages": "訊息",
313
+ "counter_fatal_zero": "0 個致命錯誤",
314
+ "counter_fatal_one": "1 個致命錯誤",
315
+ "counter_fatal_many": "%1$d個致命錯誤",
316
+ "counter_error_zero": "0 個錯誤",
317
+ "counter_error_one": "1 個錯誤",
318
+ "counter_error_many": "%1$d 個錯誤",
319
+ "counter_warn_zero": "0 個警告訊息",
320
+ "counter_warn_one": "1 個警告訊息",
321
+ "counter_warn_many": "%1$d 個警告訊息",
322
+ "counter_info_zero": "0 個參考提示",
323
+ "counter_info_one": "1 個參考提示",
324
+ "counter_info_many": "%1$d 個參考提示",
325
+ "counter_usage_zero": "0 個使用例",
326
+ "counter_usage_one": "1 個使用例",
327
+ "counter_usage_many": "%1$d 個使用例",
328
+ "display_help": "-help 顯示輔助說明",
329
+ "argument_needed": "預期至少要有一個引數",
330
+ "no_file_specified": "引數中未指定檔案。結束驗證。",
331
+ "mode_version_ignored": "由於會從EPUB檔案中取得模式與版本,將會忽略引數。",
332
+ "mode_required": "非EPUB的檔案需要提供模式,預設版本為3.0。",
333
+ "validating_version_message": "以EPUB %1$s 版本規則進行驗證。",
334
+ "output_type_conflict": "一次只能指定一種輸出格式。",
335
+ "file_not_found": "找不到「%1$s」檔案",
336
+ "directory_not_found": "找不到「%1$s」目錄",
337
+ "deleting_archive": "\n因為發現錯誤而中止EPUB製作。\n",
338
+ "epubcheck_completed": "EPUB檢查完成",
339
+ "error_creating_config_file": "建立設定檔「%1$s」發生錯誤。",
340
+ "expected_message_filename": "預期會有指定的輸出訊息檔名,卻發現「%1$s」",
341
+ "unrecognized_argument": "「%1$s」為無法辨識的變數",
342
+ "epubcheck_version_text": "EPUB檢查器 %1$s版",
343
+ "incorrect_locale": "指定 --locale 項目的「%1$s」變數不正確。",
344
+ "missing_locale": "找不到指定 --locale 項目的變數。"
345
+ }
346
+ };
@@ -0,0 +1,93 @@
1
+ export { EPUBCHECK_VERSION } from "epubcheck-standalone";
2
+ export { formatTemplate } from "epubcheck-standalone/formatters";
3
+ import { type ConsoleLabels } from "epubcheck-standalone/formatters";
4
+ export declare const M: {
5
+ readonly display_help: "-help displays help";
6
+ readonly argument_needed: "At least one argument expected";
7
+ readonly no_file_specified: "No file specified in the arguments. Exiting.";
8
+ readonly mode_version_ignored: "The mode and version arguments are ignored for epubs. They are retrieved from the files.";
9
+ readonly mode_required: "Mode required for non-epub files. Default version is 3.0.";
10
+ readonly output_type_conflict: "Only one output format can be specified at a time.";
11
+ readonly file_not_found: 'File not found: "%1$s"';
12
+ readonly directory_not_found: 'Directory not found: "%1$s"';
13
+ readonly deleting_archive: "\nEpub creation cancelled due to detected errors.\n";
14
+ readonly error_creating_config_file: 'Error creating config file "%1$s".';
15
+ readonly expected_message_filename: 'Expected the Custom message file name, but found "%1$s"';
16
+ readonly unrecognized_argument: 'Unrecognized argument: "%1$s"';
17
+ readonly epubcheck_version_text: "EPUBCheck v%1$s";
18
+ readonly incorrect_locale: 'Argument "%1$s" to the --locale option is incorrect.';
19
+ readonly missing_locale: "Argument to the --locale option is missing.";
20
+ };
21
+ /**
22
+ * Every localizable key: the shared console-chrome keys (from `ConsoleLabels`,
23
+ * whose English baseline is `DEFAULT_CONSOLE_LABELS`) plus the CLI-only keys in
24
+ * `M`. This is the union a per-locale override table may key off of.
25
+ */
26
+ export type MessageKey = keyof ConsoleLabels | keyof typeof M;
27
+ /** The full message table for a run: the shared `ConsoleLabels` chrome plus the
28
+ * CLI-only strings. Values are widened to `string` so a localized table (whose
29
+ * strings are not the English literals) is still assignable, and it structurally
30
+ * satisfies `ConsoleLabels` so it can be passed straight into the library render
31
+ * primitives. */
32
+ export type Messages = ConsoleLabels & {
33
+ readonly [K in keyof typeof M]: string;
34
+ };
35
+ /**
36
+ * The exact locale tags whose message bundles epubcheck ships (verified against
37
+ * the jar: `messages_{da,de,en,es,fr,it,ja,ko_KR,nl,pt_BR,zh_TW}.properties` and
38
+ * the matching `MessageBundle_*`). Canonical form: lowercase language, uppercase
39
+ * region. Note `ko`, `pt`, and `zh` ship ONLY region-qualified (ko_KR/pt_BR/zh_TW),
40
+ * so the bare language subtags of those are NOT here.
41
+ */
42
+ export declare const SHIPPED_LOCALES: ReadonlySet<string>;
43
+ /**
44
+ * The BARE-LANGUAGE bundles epubcheck ships (`messages_<lang>.properties` with no
45
+ * region). A region-qualified tag of one of these (e.g. `en-US`, `fr-FR`, `de-DE`)
46
+ * resolves to the bare bundle through the TAG'S OWN Java ResourceBundle candidate
47
+ * chain (language-region -> language -> ...), so its resolution is deterministic
48
+ * regardless of the host's default locale. That is what makes those tags safe to
49
+ * support with proven byte-identity. `ko`/`pt`/`zh` are absent on purpose: they
50
+ * ship only region-qualified, so a bare `ko`/`pt`/`zh` (or any unshipped language
51
+ * such as `pl`/`ru`) would fall through to Java's DEFAULT-LOCALE fallback, whose
52
+ * result is host-dependent and therefore not provably byte-identical across hosts
53
+ * -- the CLI keeps refusing those (see resolveLocale / unsupportedReason).
54
+ */
55
+ export declare const SHIPPED_LANGUAGES: ReadonlySet<string>;
56
+ /**
57
+ * Canonicalize a locale tag the way java.util.Locale.forLanguageTag would for our
58
+ * shipped set: lowercase the language subtag, uppercase a two-letter region
59
+ * subtag, join with a hyphen. e.g. "ko-kr" / "KO_KR" -> "ko-KR", "FR" -> "fr".
60
+ */
61
+ export declare function canonicalizeLocale(tag: string): string;
62
+ /**
63
+ * The shipped locale key whose bundle epubcheck's ResourceBundle would resolve
64
+ * `tag` to THROUGH THE TAG'S OWN candidate chain (region -> language), or "en" for
65
+ * a tag that resolves to the English base that way, or null when resolution would
66
+ * require Java's host-dependent default-locale fallback (which we cannot prove is
67
+ * byte-identical to an arbitrary jar host, so the CLI refuses it).
68
+ *
69
+ * Deterministic, default-locale-independent, mirroring java.util.ResourceBundle:
70
+ * - an exact shipped tag (incl. ko-KR / pt-BR / zh-TW) -> itself;
71
+ * - a tag whose language is a shipped bare-language bundle -> that language
72
+ * (so en-US / fr-FR / de-DE / es-ES / it-IT / ja-JP / nl-NL / da-DK / en-GB
73
+ * all resolve to their bare bundle);
74
+ * - anything else -> null (refused).
75
+ */
76
+ export declare function resolveLocale(tag: string): string | null;
77
+ /**
78
+ * The message table for a run: English by default, or English merged with the
79
+ * localized overrides for a shipped non-English locale. Message text itself
80
+ * arrives already localized from the engine tap; this only covers the strings the
81
+ * CLI formats on its own (the summary counters, the validating line, the footer,
82
+ * and the finished-with lines).
83
+ */
84
+ export declare function messagesFor(localeTag: string | null): Messages;
85
+ /** Reporting levels, mirroring com.adobe.epubcheck.util.ReportingLevel. */
86
+ export declare const ReportingLevel: {
87
+ readonly Fatal: 5;
88
+ readonly Error: 4;
89
+ readonly Warning: 3;
90
+ readonly Info: 2;
91
+ readonly Usage: 1;
92
+ readonly Suppressed: 0;
93
+ };
@@ -0,0 +1,136 @@
1
+ // Verbatim message strings from epubcheck 5.3.0's default (English) resource
2
+ // bundle: src/main/resources/com/adobe/epubcheck/util/messages.properties.
3
+ // These are reproduced exactly so the CLI's console text is byte-identical to
4
+ // the real `epubcheck` tool. `%1$s`-style Java placeholders are rendered by the
5
+ // library's shared `formatTemplate` helper.
6
+ //
7
+ // The English baseline for the strings the console renderer formats (the
8
+ // validating line, the finished-with lines, the summary counters, the footer)
9
+ // is stated ONCE in the library's `DEFAULT_CONSOLE_LABELS` (the `ConsoleLabels`
10
+ // contract), so `M` below carries ONLY the CLI-specific strings that have no
11
+ // `ConsoleLabels` counterpart. A run's message table (`messagesFor`) merges the
12
+ // two -- `{ ...DEFAULT_CONSOLE_LABELS, ...M }` -- and layers any per-locale
13
+ // overrides on top, so the localized `ConsoleLabels` the CLI passes into the
14
+ // library render primitives is exactly `{ ...DEFAULT_CONSOLE_LABELS, ...overrides }`.
15
+ // The epubcheck upstream version is the library's single source of truth
16
+ // (derived there from its package.json version prefix); re-export it so CLI
17
+ // modules can keep importing it from here, with no hardcoded token.
18
+ export { EPUBCHECK_VERSION } from "epubcheck-standalone";
19
+ // The `%1$s`/`%1$d` positional substitution and the English console chrome
20
+ // strings both live in the library (one implementation); re-export the helper
21
+ // so CLI modules keep a single import site.
22
+ export { formatTemplate } from "epubcheck-standalone/formatters";
23
+ import { DEFAULT_CONSOLE_LABELS } from "epubcheck-standalone/formatters";
24
+ import { LOCALE_MESSAGES } from "./locale-messages.js";
25
+ // --- CLI-only strings (messages.properties keys with no ConsoleLabels
26
+ // counterpart). The shared console chrome (no_errors__or_warnings,
27
+ // there_were_*, messages, counter_*, validating_version_message,
28
+ // epubcheck_completed) is NOT restated here -- it comes from the library's
29
+ // DEFAULT_CONSOLE_LABELS (see messagesFor). ---
30
+ export const M = {
31
+ display_help: "-help displays help",
32
+ argument_needed: "At least one argument expected",
33
+ no_file_specified: "No file specified in the arguments. Exiting.",
34
+ mode_version_ignored: "The mode and version arguments are ignored for epubs. They are retrieved from the files.",
35
+ mode_required: "Mode required for non-epub files. Default version is 3.0.",
36
+ output_type_conflict: "Only one output format can be specified at a time.",
37
+ file_not_found: 'File not found: "%1$s"',
38
+ directory_not_found: 'Directory not found: "%1$s"',
39
+ deleting_archive: "\nEpub creation cancelled due to detected errors.\n",
40
+ error_creating_config_file: 'Error creating config file "%1$s".',
41
+ expected_message_filename: 'Expected the Custom message file name, but found "%1$s"',
42
+ unrecognized_argument: 'Unrecognized argument: "%1$s"',
43
+ epubcheck_version_text: "EPUBCheck v%1$s",
44
+ incorrect_locale: 'Argument "%1$s" to the --locale option is incorrect.',
45
+ missing_locale: "Argument to the --locale option is missing.",
46
+ };
47
+ /**
48
+ * The exact locale tags whose message bundles epubcheck ships (verified against
49
+ * the jar: `messages_{da,de,en,es,fr,it,ja,ko_KR,nl,pt_BR,zh_TW}.properties` and
50
+ * the matching `MessageBundle_*`). Canonical form: lowercase language, uppercase
51
+ * region. Note `ko`, `pt`, and `zh` ship ONLY region-qualified (ko_KR/pt_BR/zh_TW),
52
+ * so the bare language subtags of those are NOT here.
53
+ */
54
+ export const SHIPPED_LOCALES = new Set([
55
+ "da", "de", "en", "es", "fr", "it", "ja", "ko-KR", "nl", "pt-BR", "zh-TW",
56
+ ]);
57
+ /**
58
+ * The BARE-LANGUAGE bundles epubcheck ships (`messages_<lang>.properties` with no
59
+ * region). A region-qualified tag of one of these (e.g. `en-US`, `fr-FR`, `de-DE`)
60
+ * resolves to the bare bundle through the TAG'S OWN Java ResourceBundle candidate
61
+ * chain (language-region -> language -> ...), so its resolution is deterministic
62
+ * regardless of the host's default locale. That is what makes those tags safe to
63
+ * support with proven byte-identity. `ko`/`pt`/`zh` are absent on purpose: they
64
+ * ship only region-qualified, so a bare `ko`/`pt`/`zh` (or any unshipped language
65
+ * such as `pl`/`ru`) would fall through to Java's DEFAULT-LOCALE fallback, whose
66
+ * result is host-dependent and therefore not provably byte-identical across hosts
67
+ * -- the CLI keeps refusing those (see resolveLocale / unsupportedReason).
68
+ */
69
+ export const SHIPPED_LANGUAGES = new Set([
70
+ "da", "de", "en", "es", "fr", "it", "ja", "nl",
71
+ ]);
72
+ /**
73
+ * Canonicalize a locale tag the way java.util.Locale.forLanguageTag would for our
74
+ * shipped set: lowercase the language subtag, uppercase a two-letter region
75
+ * subtag, join with a hyphen. e.g. "ko-kr" / "KO_KR" -> "ko-KR", "FR" -> "fr".
76
+ */
77
+ export function canonicalizeLocale(tag) {
78
+ const parts = tag.split(/[-_]/);
79
+ const lang = (parts[0] ?? "").toLowerCase();
80
+ if (parts.length < 2)
81
+ return lang;
82
+ const region = parts[1].toUpperCase();
83
+ return `${lang}-${region}`;
84
+ }
85
+ /**
86
+ * The shipped locale key whose bundle epubcheck's ResourceBundle would resolve
87
+ * `tag` to THROUGH THE TAG'S OWN candidate chain (region -> language), or "en" for
88
+ * a tag that resolves to the English base that way, or null when resolution would
89
+ * require Java's host-dependent default-locale fallback (which we cannot prove is
90
+ * byte-identical to an arbitrary jar host, so the CLI refuses it).
91
+ *
92
+ * Deterministic, default-locale-independent, mirroring java.util.ResourceBundle:
93
+ * - an exact shipped tag (incl. ko-KR / pt-BR / zh-TW) -> itself;
94
+ * - a tag whose language is a shipped bare-language bundle -> that language
95
+ * (so en-US / fr-FR / de-DE / es-ES / it-IT / ja-JP / nl-NL / da-DK / en-GB
96
+ * all resolve to their bare bundle);
97
+ * - anything else -> null (refused).
98
+ */
99
+ export function resolveLocale(tag) {
100
+ const canon = canonicalizeLocale(tag);
101
+ if (SHIPPED_LOCALES.has(canon))
102
+ return canon;
103
+ const lang = canon.split("-")[0];
104
+ if (SHIPPED_LANGUAGES.has(lang))
105
+ return lang;
106
+ return null;
107
+ }
108
+ /**
109
+ * The message table for a run: English by default, or English merged with the
110
+ * localized overrides for a shipped non-English locale. Message text itself
111
+ * arrives already localized from the engine tap; this only covers the strings the
112
+ * CLI formats on its own (the summary counters, the validating line, the footer,
113
+ * and the finished-with lines).
114
+ */
115
+ export function messagesFor(localeTag) {
116
+ // The English baseline: the library's shared console chrome + the CLI-only
117
+ // strings. Stated once here from DEFAULT_CONSOLE_LABELS (no echo in M).
118
+ const base = { ...DEFAULT_CONSOLE_LABELS, ...M };
119
+ if (localeTag === null)
120
+ return base;
121
+ // Look up the localized framework overrides under the SAME shipped key the tag
122
+ // resolves to (so fr-FR uses the "fr" table, en-US falls back to English, etc.).
123
+ // Overrides cover both the console-chrome keys and the CLI-only keys.
124
+ const key = resolveLocale(localeTag);
125
+ const over = key ? LOCALE_MESSAGES[key] : undefined;
126
+ return over ? { ...base, ...over } : base;
127
+ }
128
+ /** Reporting levels, mirroring com.adobe.epubcheck.util.ReportingLevel. */
129
+ export const ReportingLevel = {
130
+ Fatal: 5,
131
+ Error: 4,
132
+ Warning: 3,
133
+ Info: 2,
134
+ Usage: 1,
135
+ Suppressed: 0,
136
+ };