@transferwise/components 0.0.0-experimental-09e50b0 → 0.0.0-experimental-52c0a68

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/build/index.js CHANGED
@@ -395,11 +395,6 @@ const DEFAULT_LOCALE = 'en-GB';
395
395
  * @type {string[]}
396
396
  */
397
397
  const RTL_LANGUAGES = ['ar', 'he'];
398
-
399
- /**
400
- * @deprecated The source of truth for supported languages lives in Crab.
401
- * @type {string[]}
402
- */
403
398
  const SUPPORTED_LANGUAGES = [DEFAULT_LANG, 'de', 'es', 'fr', 'hu', 'id', 'it', 'ja', 'pl', 'pt', 'ro', 'ru', 'th', 'tr', 'uk', 'zh'];
404
399
 
405
400
  /**
@@ -429,13 +424,8 @@ function adjustLocale(locale) {
429
424
  * Provides corresponding lang (iso2) for provided locale
430
425
  * if locale is invalid or language is unsupported returns null
431
426
  *
432
- * @deprecated The use of this function almost always breaks language variants
433
- * e.g. Simplified and Traditional Chinese.
434
- * There should be no use case for this function.
435
- * To select the correct translations from a translations object, pass the
436
- * locale directly into Crab's getLocalisedMessages.
437
427
  * @param {string} locale (`es`, `es-ES`, `en-GB`, `en`, `ja`, `ja-JP` etc)
438
- * @returns {string|null} two-letter ISO639-1 language
428
+ * @returns {string|null}
439
429
  */
440
430
  function getLangFromLocale(locale) {
441
431
  const adjustedLocale = adjustLocale(locale);
@@ -14502,6 +14492,51 @@ function useSnackbar() {
14502
14492
  return createSnackbar;
14503
14493
  }
14504
14494
 
14495
+ var cs = {
14496
+ "neptune.Chips.ariaLabel": "Vyčistit {choice}",
14497
+ "neptune.ClearButton.ariaLabel": "Vyčistit",
14498
+ "neptune.CloseButton.ariaLabel": "Zavřít",
14499
+ "neptune.DateInput.day.label": "Den",
14500
+ "neptune.DateInput.month.label": "Měsíc",
14501
+ "neptune.DateInput.year.label": "Rok",
14502
+ "neptune.MoneyInput.Select.placeholder": "Vybrat možnost...",
14503
+ "neptune.Pagination.ariaLabel": "Navigace v Pagination",
14504
+ "neptune.PaginationLink.ariaLabel.active": "Přejít na stránku {pageNumber}",
14505
+ "neptune.PaginationLink.ariaLabel.inactive": "Současná stránka, stránka {pageNumber}",
14506
+ "neptune.Select.searchPlaceholder": "Hledat...",
14507
+ "neptune.Summary.statusDone": "Položka dokončena",
14508
+ "neptune.Summary.statusNotDone": "Položka k dokončení",
14509
+ "neptune.Summary.statusPending": "Čekající položka",
14510
+ "neptune.Upload.csButtonText": "Nahrát další soubor?",
14511
+ "neptune.Upload.csFailureText": "Nahrání se nezdařilo. Zkuste to prosím později",
14512
+ "neptune.Upload.csSuccessText": "Úspěšně nahráno!",
14513
+ "neptune.Upload.csTooLargeMessage": "Soubor musí být menší než 5MB",
14514
+ "neptune.Upload.csWrongTypeMessage": "Tento formát souboru není podporován. Zkuste to znovu s jiným souborem",
14515
+ "neptune.Upload.psButtonText": "Zrušit",
14516
+ "neptune.Upload.psProcessingText": "Načítání...",
14517
+ "neptune.Upload.usButtonText": "Nebo vyberte soubor",
14518
+ "neptune.Upload.usDropMessage": "Pusťte sem soubor pro jeho nahrání",
14519
+ "neptune.Upload.usPlaceholder": "Přetáhněte a pusťte sem soubor menší než 5MB",
14520
+ "neptune.UploadButton.allFileTypes": "Všechny typy souborů",
14521
+ "neptune.UploadButton.dropFiles": "Pusťte sem soubor pro jeho nahrání",
14522
+ "neptune.UploadButton.instructions": "{fileTypes}, menší než {size}MB",
14523
+ "neptune.UploadButton.uploadFile": "Nahrát soubor",
14524
+ "neptune.UploadButton.uploadFiles": "Nahrát soubory",
14525
+ "neptune.UploadInput.deleteModalBody": "Odstraněním tohoto souboru jej smažete z našeho systému.",
14526
+ "neptune.UploadInput.deleteModalCancelButtonText": "Zrušit",
14527
+ "neptune.UploadInput.deleteModalConfirmButtonText": "Odstranit",
14528
+ "neptune.UploadInput.deleteModalTitle": "Jistě chcete odstranit tento soubor?",
14529
+ "neptune.UploadInput.fileIsTooLarge": "Soubor je příliš velký",
14530
+ "neptune.UploadInput.fileTypeNotSupported": "Typ souboru není podporován",
14531
+ "neptune.UploadInput.maximumFilesAlreadyUploaded": "Je nám líto, ale toto nahrání se nezdařilo, protože můžeme přijmout pouze {maxFilesAllowed} souborů najednou.",
14532
+ "neptune.UploadItem.deleting": "Mažeme...",
14533
+ "neptune.UploadItem.removeFile": "Odstranit soubor {filename}",
14534
+ "neptune.UploadItem.uploaded": "Nahráno",
14535
+ "neptune.UploadItem.uploadedFile": "Nahraný soubor",
14536
+ "neptune.UploadItem.uploading": "Nahrávání...",
14537
+ "neptune.UploadItem.uploadingFailed": "Nahrání se nezdařilo"
14538
+ };
14539
+
14505
14540
  var de = {
14506
14541
  "neptune.Chips.ariaLabel": "{choice} zurücksetzen",
14507
14542
  "neptune.ClearButton.ariaLabel": "Zurücksetzen",
@@ -15132,7 +15167,52 @@ var uk = {
15132
15167
  "neptune.UploadItem.uploadingFailed": "Не вдалося завантажити"
15133
15168
  };
15134
15169
 
15135
- var zh = {
15170
+ var zhCN = {
15171
+ "neptune.Chips.ariaLabel": "清除 {choice}",
15172
+ "neptune.ClearButton.ariaLabel": "清晰",
15173
+ "neptune.CloseButton.ariaLabel": "关闭",
15174
+ "neptune.DateInput.day.label": "日",
15175
+ "neptune.DateInput.month.label": "月",
15176
+ "neptune.DateInput.year.label": "年",
15177
+ "neptune.MoneyInput.Select.placeholder": "请选择...",
15178
+ "neptune.Pagination.ariaLabel": "分页导航",
15179
+ "neptune.PaginationLink.ariaLabel.active": "转到第 {pageNumber} 页",
15180
+ "neptune.PaginationLink.ariaLabel.inactive": "当前页面,第 {pageNumber} 页",
15181
+ "neptune.Select.searchPlaceholder": "搜索",
15182
+ "neptune.Summary.statusDone": "已完成",
15183
+ "neptune.Summary.statusNotDone": "未完成",
15184
+ "neptune.Summary.statusPending": "待处理",
15185
+ "neptune.Upload.csButtonText": "上传另一个文件?",
15186
+ "neptune.Upload.csFailureText": "上传失败。请重试",
15187
+ "neptune.Upload.csSuccessText": "上传完毕!",
15188
+ "neptune.Upload.csTooLargeMessage": "请提供小于 5MB 的文件",
15189
+ "neptune.Upload.csWrongTypeMessage": "不支持该文件类型,请试试其他文件",
15190
+ "neptune.Upload.psButtonText": "取消",
15191
+ "neptune.Upload.psProcessingText": "正在上传…",
15192
+ "neptune.Upload.usButtonText": "或选择文件",
15193
+ "neptune.Upload.usDropMessage": "拖放文件开始上传",
15194
+ "neptune.Upload.usPlaceholder": "拖放小于 5MB 的文件",
15195
+ "neptune.UploadButton.allFileTypes": "所有文件类型",
15196
+ "neptune.UploadButton.dropFiles": "拖放文件开始上传",
15197
+ "neptune.UploadButton.instructions": "{fileTypes},小于 {size}MB",
15198
+ "neptune.UploadButton.uploadFile": "上传文件",
15199
+ "neptune.UploadButton.uploadFiles": "上传文件",
15200
+ "neptune.UploadInput.deleteModalBody": "删除此文件会将其从我们的系统中删除",
15201
+ "neptune.UploadInput.deleteModalCancelButtonText": "取消",
15202
+ "neptune.UploadInput.deleteModalConfirmButtonText": "删除",
15203
+ "neptune.UploadInput.deleteModalTitle": "确定要删除此文件吗?",
15204
+ "neptune.UploadInput.fileIsTooLarge": "文件太大",
15205
+ "neptune.UploadInput.fileTypeNotSupported": "文件类型不受支持",
15206
+ "neptune.UploadInput.maximumFilesAlreadyUploaded": "抱歉,此上传失败,因为我们一次只能接受 {maxFilesAllowed} 个文件。",
15207
+ "neptune.UploadItem.deleting": "正在删除…",
15208
+ "neptune.UploadItem.removeFile": "删除文件 {filename}",
15209
+ "neptune.UploadItem.uploaded": "已上传",
15210
+ "neptune.UploadItem.uploadedFile": "上传的文件",
15211
+ "neptune.UploadItem.uploading": "正在上传…",
15212
+ "neptune.UploadItem.uploadingFailed": "上传失败"
15213
+ };
15214
+
15215
+ var zhHK = {
15136
15216
  "neptune.Chips.ariaLabel": "清除{choice}",
15137
15217
  "neptune.ClearButton.ariaLabel": "清除",
15138
15218
  "neptune.CloseButton.ariaLabel": "關閉",
@@ -15178,6 +15258,7 @@ var zh = {
15178
15258
  };
15179
15259
 
15180
15260
  const translations = {
15261
+ cs,
15181
15262
  de,
15182
15263
  en,
15183
15264
  es,
@@ -15193,7 +15274,8 @@ const translations = {
15193
15274
  th,
15194
15275
  tr,
15195
15276
  uk,
15196
- zh
15277
+ 'zh-CN': zhCN,
15278
+ 'zh-HK': zhHK
15197
15279
  };
15198
15280
 
15199
15281
  exports.Accordion = Accordion;