@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.esm.js +95 -13
- package/build/index.esm.js.map +1 -1
- package/build/index.js +95 -13
- package/build/index.js.map +1 -1
- package/build/types/common/locale/index.d.ts +1 -10
- package/build/types/common/locale/index.d.ts.map +1 -1
- package/build/types/i18n/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/common/locale/index.js +1 -10
- package/src/common/locale/index.spec.js +1 -34
- package/src/i18n/index.ts +6 -2
- package/build/i18n/zh_CN.json +0 -44
- package/src/i18n/zh_CN.json +0 -44
- /package/build/i18n/{zh.json → zh-HK.json} +0 -0
- /package/src/i18n/{zh.json → zh-HK.json} +0 -0
package/build/index.esm.js
CHANGED
|
@@ -361,11 +361,6 @@ const DEFAULT_LOCALE = 'en-GB';
|
|
|
361
361
|
* @type {string[]}
|
|
362
362
|
*/
|
|
363
363
|
const RTL_LANGUAGES = ['ar', 'he'];
|
|
364
|
-
|
|
365
|
-
/**
|
|
366
|
-
* @deprecated The source of truth for supported languages lives in Crab.
|
|
367
|
-
* @type {string[]}
|
|
368
|
-
*/
|
|
369
364
|
const SUPPORTED_LANGUAGES = [DEFAULT_LANG, 'de', 'es', 'fr', 'hu', 'id', 'it', 'ja', 'pl', 'pt', 'ro', 'ru', 'th', 'tr', 'uk', 'zh'];
|
|
370
365
|
|
|
371
366
|
/**
|
|
@@ -395,13 +390,8 @@ function adjustLocale(locale) {
|
|
|
395
390
|
* Provides corresponding lang (iso2) for provided locale
|
|
396
391
|
* if locale is invalid or language is unsupported returns null
|
|
397
392
|
*
|
|
398
|
-
* @deprecated The use of this function almost always breaks language variants
|
|
399
|
-
* e.g. Simplified and Traditional Chinese.
|
|
400
|
-
* There should be no use case for this function.
|
|
401
|
-
* To select the correct translations from a translations object, pass the
|
|
402
|
-
* locale directly into Crab's getLocalisedMessages.
|
|
403
393
|
* @param {string} locale (`es`, `es-ES`, `en-GB`, `en`, `ja`, `ja-JP` etc)
|
|
404
|
-
* @returns {string|null}
|
|
394
|
+
* @returns {string|null}
|
|
405
395
|
*/
|
|
406
396
|
function getLangFromLocale(locale) {
|
|
407
397
|
const adjustedLocale = adjustLocale(locale);
|
|
@@ -14468,6 +14458,51 @@ function useSnackbar() {
|
|
|
14468
14458
|
return createSnackbar;
|
|
14469
14459
|
}
|
|
14470
14460
|
|
|
14461
|
+
var cs = {
|
|
14462
|
+
"neptune.Chips.ariaLabel": "Vyčistit {choice}",
|
|
14463
|
+
"neptune.ClearButton.ariaLabel": "Vyčistit",
|
|
14464
|
+
"neptune.CloseButton.ariaLabel": "Zavřít",
|
|
14465
|
+
"neptune.DateInput.day.label": "Den",
|
|
14466
|
+
"neptune.DateInput.month.label": "Měsíc",
|
|
14467
|
+
"neptune.DateInput.year.label": "Rok",
|
|
14468
|
+
"neptune.MoneyInput.Select.placeholder": "Vybrat možnost...",
|
|
14469
|
+
"neptune.Pagination.ariaLabel": "Navigace v Pagination",
|
|
14470
|
+
"neptune.PaginationLink.ariaLabel.active": "Přejít na stránku {pageNumber}",
|
|
14471
|
+
"neptune.PaginationLink.ariaLabel.inactive": "Současná stránka, stránka {pageNumber}",
|
|
14472
|
+
"neptune.Select.searchPlaceholder": "Hledat...",
|
|
14473
|
+
"neptune.Summary.statusDone": "Položka dokončena",
|
|
14474
|
+
"neptune.Summary.statusNotDone": "Položka k dokončení",
|
|
14475
|
+
"neptune.Summary.statusPending": "Čekající položka",
|
|
14476
|
+
"neptune.Upload.csButtonText": "Nahrát další soubor?",
|
|
14477
|
+
"neptune.Upload.csFailureText": "Nahrání se nezdařilo. Zkuste to prosím později",
|
|
14478
|
+
"neptune.Upload.csSuccessText": "Úspěšně nahráno!",
|
|
14479
|
+
"neptune.Upload.csTooLargeMessage": "Soubor musí být menší než 5MB",
|
|
14480
|
+
"neptune.Upload.csWrongTypeMessage": "Tento formát souboru není podporován. Zkuste to znovu s jiným souborem",
|
|
14481
|
+
"neptune.Upload.psButtonText": "Zrušit",
|
|
14482
|
+
"neptune.Upload.psProcessingText": "Načítání...",
|
|
14483
|
+
"neptune.Upload.usButtonText": "Nebo vyberte soubor",
|
|
14484
|
+
"neptune.Upload.usDropMessage": "Pusťte sem soubor pro jeho nahrání",
|
|
14485
|
+
"neptune.Upload.usPlaceholder": "Přetáhněte a pusťte sem soubor menší než 5MB",
|
|
14486
|
+
"neptune.UploadButton.allFileTypes": "Všechny typy souborů",
|
|
14487
|
+
"neptune.UploadButton.dropFiles": "Pusťte sem soubor pro jeho nahrání",
|
|
14488
|
+
"neptune.UploadButton.instructions": "{fileTypes}, menší než {size}MB",
|
|
14489
|
+
"neptune.UploadButton.uploadFile": "Nahrát soubor",
|
|
14490
|
+
"neptune.UploadButton.uploadFiles": "Nahrát soubory",
|
|
14491
|
+
"neptune.UploadInput.deleteModalBody": "Odstraněním tohoto souboru jej smažete z našeho systému.",
|
|
14492
|
+
"neptune.UploadInput.deleteModalCancelButtonText": "Zrušit",
|
|
14493
|
+
"neptune.UploadInput.deleteModalConfirmButtonText": "Odstranit",
|
|
14494
|
+
"neptune.UploadInput.deleteModalTitle": "Jistě chcete odstranit tento soubor?",
|
|
14495
|
+
"neptune.UploadInput.fileIsTooLarge": "Soubor je příliš velký",
|
|
14496
|
+
"neptune.UploadInput.fileTypeNotSupported": "Typ souboru není podporován",
|
|
14497
|
+
"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.",
|
|
14498
|
+
"neptune.UploadItem.deleting": "Mažeme...",
|
|
14499
|
+
"neptune.UploadItem.removeFile": "Odstranit soubor {filename}",
|
|
14500
|
+
"neptune.UploadItem.uploaded": "Nahráno",
|
|
14501
|
+
"neptune.UploadItem.uploadedFile": "Nahraný soubor",
|
|
14502
|
+
"neptune.UploadItem.uploading": "Nahrávání...",
|
|
14503
|
+
"neptune.UploadItem.uploadingFailed": "Nahrání se nezdařilo"
|
|
14504
|
+
};
|
|
14505
|
+
|
|
14471
14506
|
var de = {
|
|
14472
14507
|
"neptune.Chips.ariaLabel": "{choice} zurücksetzen",
|
|
14473
14508
|
"neptune.ClearButton.ariaLabel": "Zurücksetzen",
|
|
@@ -15098,7 +15133,52 @@ var uk = {
|
|
|
15098
15133
|
"neptune.UploadItem.uploadingFailed": "Не вдалося завантажити"
|
|
15099
15134
|
};
|
|
15100
15135
|
|
|
15101
|
-
var
|
|
15136
|
+
var zhCN = {
|
|
15137
|
+
"neptune.Chips.ariaLabel": "清除 {choice}",
|
|
15138
|
+
"neptune.ClearButton.ariaLabel": "清晰",
|
|
15139
|
+
"neptune.CloseButton.ariaLabel": "关闭",
|
|
15140
|
+
"neptune.DateInput.day.label": "日",
|
|
15141
|
+
"neptune.DateInput.month.label": "月",
|
|
15142
|
+
"neptune.DateInput.year.label": "年",
|
|
15143
|
+
"neptune.MoneyInput.Select.placeholder": "请选择...",
|
|
15144
|
+
"neptune.Pagination.ariaLabel": "分页导航",
|
|
15145
|
+
"neptune.PaginationLink.ariaLabel.active": "转到第 {pageNumber} 页",
|
|
15146
|
+
"neptune.PaginationLink.ariaLabel.inactive": "当前页面,第 {pageNumber} 页",
|
|
15147
|
+
"neptune.Select.searchPlaceholder": "搜索",
|
|
15148
|
+
"neptune.Summary.statusDone": "已完成",
|
|
15149
|
+
"neptune.Summary.statusNotDone": "未完成",
|
|
15150
|
+
"neptune.Summary.statusPending": "待处理",
|
|
15151
|
+
"neptune.Upload.csButtonText": "上传另一个文件?",
|
|
15152
|
+
"neptune.Upload.csFailureText": "上传失败。请重试",
|
|
15153
|
+
"neptune.Upload.csSuccessText": "上传完毕!",
|
|
15154
|
+
"neptune.Upload.csTooLargeMessage": "请提供小于 5MB 的文件",
|
|
15155
|
+
"neptune.Upload.csWrongTypeMessage": "不支持该文件类型,请试试其他文件",
|
|
15156
|
+
"neptune.Upload.psButtonText": "取消",
|
|
15157
|
+
"neptune.Upload.psProcessingText": "正在上传…",
|
|
15158
|
+
"neptune.Upload.usButtonText": "或选择文件",
|
|
15159
|
+
"neptune.Upload.usDropMessage": "拖放文件开始上传",
|
|
15160
|
+
"neptune.Upload.usPlaceholder": "拖放小于 5MB 的文件",
|
|
15161
|
+
"neptune.UploadButton.allFileTypes": "所有文件类型",
|
|
15162
|
+
"neptune.UploadButton.dropFiles": "拖放文件开始上传",
|
|
15163
|
+
"neptune.UploadButton.instructions": "{fileTypes},小于 {size}MB",
|
|
15164
|
+
"neptune.UploadButton.uploadFile": "上传文件",
|
|
15165
|
+
"neptune.UploadButton.uploadFiles": "上传文件",
|
|
15166
|
+
"neptune.UploadInput.deleteModalBody": "删除此文件会将其从我们的系统中删除",
|
|
15167
|
+
"neptune.UploadInput.deleteModalCancelButtonText": "取消",
|
|
15168
|
+
"neptune.UploadInput.deleteModalConfirmButtonText": "删除",
|
|
15169
|
+
"neptune.UploadInput.deleteModalTitle": "确定要删除此文件吗?",
|
|
15170
|
+
"neptune.UploadInput.fileIsTooLarge": "文件太大",
|
|
15171
|
+
"neptune.UploadInput.fileTypeNotSupported": "文件类型不受支持",
|
|
15172
|
+
"neptune.UploadInput.maximumFilesAlreadyUploaded": "抱歉,此上传失败,因为我们一次只能接受 {maxFilesAllowed} 个文件。",
|
|
15173
|
+
"neptune.UploadItem.deleting": "正在删除…",
|
|
15174
|
+
"neptune.UploadItem.removeFile": "删除文件 {filename}",
|
|
15175
|
+
"neptune.UploadItem.uploaded": "已上传",
|
|
15176
|
+
"neptune.UploadItem.uploadedFile": "上传的文件",
|
|
15177
|
+
"neptune.UploadItem.uploading": "正在上传…",
|
|
15178
|
+
"neptune.UploadItem.uploadingFailed": "上传失败"
|
|
15179
|
+
};
|
|
15180
|
+
|
|
15181
|
+
var zhHK = {
|
|
15102
15182
|
"neptune.Chips.ariaLabel": "清除{choice}",
|
|
15103
15183
|
"neptune.ClearButton.ariaLabel": "清除",
|
|
15104
15184
|
"neptune.CloseButton.ariaLabel": "關閉",
|
|
@@ -15144,6 +15224,7 @@ var zh = {
|
|
|
15144
15224
|
};
|
|
15145
15225
|
|
|
15146
15226
|
const translations = {
|
|
15227
|
+
cs,
|
|
15147
15228
|
de,
|
|
15148
15229
|
en,
|
|
15149
15230
|
es,
|
|
@@ -15159,7 +15240,8 @@ const translations = {
|
|
|
15159
15240
|
th,
|
|
15160
15241
|
tr,
|
|
15161
15242
|
uk,
|
|
15162
|
-
zh
|
|
15243
|
+
'zh-CN': zhCN,
|
|
15244
|
+
'zh-HK': zhHK
|
|
15163
15245
|
};
|
|
15164
15246
|
|
|
15165
15247
|
export { Accordion, ActionButton, ActionOption, Alert$1 as Alert, ArrowPosition as AlertArrowPosition, Avatar, AvatarType, AvatarWrapper, Badge, Card as BaseCard, Body, BottomSheet$2 as BottomSheet, Breakpoint, Button, Card$2 as Card, Checkbox$1 as Checkbox, CheckboxButton$1 as CheckboxButton, CheckboxOption, Chevron$1 as Chevron, Chip, Chips, CircularButton$1 as CircularButton, ControlType, CriticalCommsBanner, DEFAULT_LANG, DEFAULT_LOCALE, DateInput$1 as DateInput, DateLookup$1 as DateLookup, DateMode, Decision$1 as Decision, Presentation as DecisionPresentation, Type as DecisionType, DefinitionList$1 as DefinitionList, Dimmer$1 as Dimmer, Direction, DirectionProvider, Display, Drawer$1 as Drawer, DropFade, DynamicFieldDefinitionList$1 as DynamicFieldDefinitionList, Emphasis, FileType, FlowNavigation, Header, Image, Info, InfoPresentation, InlineAlert, Input, InputGroup, InputWithDisplayFormat$1 as InputWithDisplayFormat, InstructionsList$1 as InstructionsList, LanguageProvider, Layout$1 as Layout, Link, ListItem$1 as ListItem, Loader$1 as Loader, Logo$1 as Logo, LogoType, Markdown$1 as Markdown, MarkdownNodeType, Modal, Money$1 as Money, MoneyInput$1 as MoneyInput, MonthFormat, NavigationOption, NavigationOptionList$1 as NavigationOptionsList, Nudge, Option$2 as Option, OverlayHeader$1 as OverlayHeader, PhoneNumberInput$1 as PhoneNumberInput, Popover$2 as Popover, Position, Priority, ProcessIndicator$1 as ProcessIndicator, ProfileType, Progress, ProgressBar, PromoCard$1 as PromoCard, PromoCard$1 as PromoCardGroup, Provider$1 as Provider, RTL_LANGUAGES, Radio$1 as Radio, RadioGroup$1 as RadioGroup, RadioOption$1 as RadioOption, SUPPORTED_LANGUAGES, Scroll, SearchInput, Section, Select, SelectInput, SelectInputOptionContent, SelectInputTriggerButton, Sentiment, Size, SlidingPanel$1 as SlidingPanel, SnackbarConsumer, SnackbarContext, SnackbarPortal, SnackbarProvider$1 as SnackbarProvider, Status, StatusIcon, Stepper, Sticky$1 as Sticky, Summary, Switch, SwitchOption, Tabs$1 as Tabs, TextArea, TextareaWithDisplayFormat$1 as TextareaWithDisplayFormat, Theme, Title, Tooltip$1 as Tooltip, Type$1 as Type, Typeahead, Typography, Upload$1 as Upload, UploadInput, UploadStep, Variant, Width, adjustLocale, getCountryFromLocale, getDirectionFromLocale, getLangFromLocale, isBrowser, isServerSide, translations, useDirection, useLayout, useSnackbar };
|