@transferwise/components 0.0.0-experimental-118c6ed → 0.0.0-experimental-8d63612

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.
@@ -11,7 +11,7 @@ const RTL_LANGUAGES = ['ar', 'he'];
11
11
  /**
12
12
  * @deprecated The source of truth for supported languages lives in Crab.
13
13
  */
14
- const SUPPORTED_LANGUAGES = [DEFAULT_LANG, 'de', 'es', 'fr', 'hu', 'id', 'it', 'ja', 'pl', 'pt', 'ro', 'ru', 'th', 'tr', 'uk', 'zh'];
14
+ const SUPPORTED_LANGUAGES = [DEFAULT_LANG, 'cs', 'de', 'es', 'fr', 'hu', 'id', 'it', 'ja', 'nl', 'pl', 'pt', 'ro', 'ru', 'th', 'tr', 'uk', 'zh'];
15
15
  /**
16
16
  * Verifies and adjusts locale, replacing `_` with `-`.
17
17
  *
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/common/locale/index.ts"],"sourcesContent":["import { Direction } from '../direction';\n\nexport const DEFAULT_LANG = 'en';\nexport const DEFAULT_LOCALE = 'en-GB';\n\n/**\n * Languages written right-to-left.\n */\nexport const RTL_LANGUAGES = ['ar', 'he'];\n\n/**\n * @deprecated The source of truth for supported languages lives in Crab.\n */\nexport const SUPPORTED_LANGUAGES = [\n DEFAULT_LANG,\n 'de',\n 'es',\n 'fr',\n 'hu',\n 'id',\n 'it',\n 'ja',\n 'pl',\n 'pt',\n 'ro',\n 'ru',\n 'th',\n 'tr',\n 'uk',\n 'zh',\n];\n\n/**\n * Verifies and adjusts locale, replacing `_` with `-`.\n *\n * @param locale `es`, `es_ES`, `en-GB`, `en`, `ja`, `ja-JP`, etc.\n * @returns `null` if locale is unrecognized by `Intl.Locale`.\n */\nexport function adjustLocale(locale: string) {\n const localeTrimmed = locale?.trim();\n if (localeTrimmed) {\n try {\n return new Intl.Locale(localeTrimmed.replace('_', '-')).baseName;\n } catch (error) {\n // eslint-disable-next-line no-console\n console.error(error);\n }\n }\n return null;\n}\n\n/**\n * Provides corresponding lang (iso2) for provided locale.\n *\n * @deprecated The use of this function almost always breaks language variants\n * e.g. Simplified and Traditional Chinese.\n * There should be no use case for this function.\n * To select the correct translations from a translations object, pass the\n * locale directly into Crab's getLocalisedMessages.\n * @param locale `es`, `es-ES`, `en-GB`, `en`, `ja`, `ja-JP`, etc.\n * @returns Two-letter ISO 639-1 language code, falling back to `null` if locale is invalid or language is unsupported.\n */\nexport function getLangFromLocale(locale: string) {\n const adjustedLocale = adjustLocale(locale);\n if (adjustedLocale != null) {\n const { language } = new Intl.Locale(adjustedLocale);\n if (SUPPORTED_LANGUAGES.includes(language)) {\n return language;\n }\n }\n return null;\n}\n\n/**\n * Provides corresponding country code (iso2) for locales code with explicit region value.\n *\n * @param locale `es-ES`, `en-GB`, `ja-JP`, etc.\n * @returns `null` if the locale is invalid or the region can‘t be identified.\n */\nexport function getCountryFromLocale(locale: string) {\n const adjustedLocale = adjustLocale(locale);\n return adjustedLocale != null ? (new Intl.Locale(adjustedLocale).region ?? null) : null;\n}\n\n/**\n * Provides the layout direction for a given locale.\n *\n * @param locale `es`, `es-ES`, `en-GB`, `en`, `ja`, `ja-JP`, etc.\n * @returns The layout direction based on the locale, falling back to `Direction.LTR` if the locale is invalid or unsupported.\n */\nexport function getDirectionFromLocale(locale: string) {\n const adjustedLocale = adjustLocale(locale);\n return adjustedLocale != null && RTL_LANGUAGES.includes(new Intl.Locale(adjustedLocale).language)\n ? Direction.RTL\n : Direction.LTR;\n}\n"],"names":["DEFAULT_LANG","DEFAULT_LOCALE","RTL_LANGUAGES","SUPPORTED_LANGUAGES","adjustLocale","locale","localeTrimmed","trim","Intl","Locale","replace","baseName","error","console","getLangFromLocale","adjustedLocale","language","includes","getCountryFromLocale","region","getDirectionFromLocale","Direction","RTL","LTR"],"mappings":";;;;AAEO,MAAMA,YAAY,GAAG;AACrB,MAAMC,cAAc,GAAG;AAE9B;;AAEG;MACUC,aAAa,GAAG,CAAC,I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,MAAM,CAACM,cAAc,CAAC,CAACI,MAAM,IAAI,IAAI,GAAI,IAAI;AACzF;AAEA;;;;;AAKG;AACG,SAAUC,sBAAsBA,CAACf,MAAc,EAAA;AACnD,EAAA,MAAMU,cAAc,GAAGX,YAAY,CAACC,MAAM,CAAC;EAC3C,OAAOU,cAAc,IAAI,IAAI,IAAIb,aAAa,CAACe,QAAQ,CAAC,IAAIT,IAAI,CAACC,MAAM,CAACM,cAAc,CAAC,CAACC,QAAQ,CAAC,GAC7FK,mBAAS,CAACC,GAAG,GACbD,mBAAS,CAACE,GAAG;AACnB;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/common/locale/index.ts"],"sourcesContent":["import { Direction } from '../direction';\n\nexport const DEFAULT_LANG = 'en';\nexport const DEFAULT_LOCALE = 'en-GB';\n\n/**\n * Languages written right-to-left.\n */\nexport const RTL_LANGUAGES = ['ar', 'he'];\n\n/**\n * @deprecated The source of truth for supported languages lives in Crab.\n */\nexport const SUPPORTED_LANGUAGES = [\n DEFAULT_LANG,\n 'cs',\n 'de',\n 'es',\n 'fr',\n 'hu',\n 'id',\n 'it',\n 'ja',\n 'nl',\n 'pl',\n 'pt',\n 'ro',\n 'ru',\n 'th',\n 'tr',\n 'uk',\n 'zh',\n];\n\n/**\n * Verifies and adjusts locale, replacing `_` with `-`.\n *\n * @param locale `es`, `es_ES`, `en-GB`, `en`, `ja`, `ja-JP`, etc.\n * @returns `null` if locale is unrecognized by `Intl.Locale`.\n */\nexport function adjustLocale(locale: string) {\n const localeTrimmed = locale?.trim();\n if (localeTrimmed) {\n try {\n return new Intl.Locale(localeTrimmed.replace('_', '-')).baseName;\n } catch (error) {\n // eslint-disable-next-line no-console\n console.error(error);\n }\n }\n return null;\n}\n\n/**\n * Provides corresponding lang (iso2) for provided locale.\n *\n * @deprecated The use of this function almost always breaks language variants\n * e.g. Simplified and Traditional Chinese.\n * There should be no use case for this function.\n * To select the correct translations from a translations object, pass the\n * locale directly into Crab's getLocalisedMessages.\n * @param locale `es`, `es-ES`, `en-GB`, `en`, `ja`, `ja-JP`, etc.\n * @returns Two-letter ISO 639-1 language code, falling back to `null` if locale is invalid or language is unsupported.\n */\nexport function getLangFromLocale(locale: string) {\n const adjustedLocale = adjustLocale(locale);\n if (adjustedLocale != null) {\n const { language } = new Intl.Locale(adjustedLocale);\n if (SUPPORTED_LANGUAGES.includes(language)) {\n return language;\n }\n }\n return null;\n}\n\n/**\n * Provides corresponding country code (iso2) for locales code with explicit region value.\n *\n * @param locale `es-ES`, `en-GB`, `ja-JP`, etc.\n * @returns `null` if the locale is invalid or the region can‘t be identified.\n */\nexport function getCountryFromLocale(locale: string) {\n const adjustedLocale = adjustLocale(locale);\n return adjustedLocale != null ? (new Intl.Locale(adjustedLocale).region ?? null) : null;\n}\n\n/**\n * Provides the layout direction for a given locale.\n *\n * @param locale `es`, `es-ES`, `en-GB`, `en`, `ja`, `ja-JP`, etc.\n * @returns The layout direction based on the locale, falling back to `Direction.LTR` if the locale is invalid or unsupported.\n */\nexport function getDirectionFromLocale(locale: string) {\n const adjustedLocale = adjustLocale(locale);\n return adjustedLocale != null && RTL_LANGUAGES.includes(new Intl.Locale(adjustedLocale).language)\n ? Direction.RTL\n : Direction.LTR;\n}\n"],"names":["DEFAULT_LANG","DEFAULT_LOCALE","RTL_LANGUAGES","SUPPORTED_LANGUAGES","adjustLocale","locale","localeTrimmed","trim","Intl","Locale","replace","baseName","error","console","getLangFromLocale","adjustedLocale","language","includes","getCountryFromLocale","region","getDirectionFromLocale","Direction","RTL","LTR"],"mappings":";;;;AAEO,MAAMA,YAAY,GAAG;AACrB,MAAMC,cAAc,GAAG;AAE9B;;AAEG;MACUC,aAAa,GAAG,CAAC,IAAI,EAAE,IAAI;AAExC;;AAEG;MACUC,mBAAmB,GAAG,CACjCH,YAAY,EACZ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ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Ac,GAAGX,YAAY,CAACC,MAAM,CAAC;EAC3C,OAAOU,cAAc,IAAI,IAAI,IAAIb,aAAa,CAACe,QAAQ,CAAC,IAAIT,IAAI,CAACC,MAAM,CAACM,cAAc,CAAC,CAACC,QAAQ,CAAC,GAC7FK,mBAAS,CAACC,GAAG,GACbD,mBAAS,CAACE,GAAG;AACnB;;;;;;;;;;;"}
@@ -9,7 +9,7 @@ const RTL_LANGUAGES = ['ar', 'he'];
9
9
  /**
10
10
  * @deprecated The source of truth for supported languages lives in Crab.
11
11
  */
12
- const SUPPORTED_LANGUAGES = [DEFAULT_LANG, 'de', 'es', 'fr', 'hu', 'id', 'it', 'ja', 'pl', 'pt', 'ro', 'ru', 'th', 'tr', 'uk', 'zh'];
12
+ const SUPPORTED_LANGUAGES = [DEFAULT_LANG, 'cs', 'de', 'es', 'fr', 'hu', 'id', 'it', 'ja', 'nl', 'pl', 'pt', 'ro', 'ru', 'th', 'tr', 'uk', 'zh'];
13
13
  /**
14
14
  * Verifies and adjusts locale, replacing `_` with `-`.
15
15
  *
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../src/common/locale/index.ts"],"sourcesContent":["import { Direction } from '../direction';\n\nexport const DEFAULT_LANG = 'en';\nexport const DEFAULT_LOCALE = 'en-GB';\n\n/**\n * Languages written right-to-left.\n */\nexport const RTL_LANGUAGES = ['ar', 'he'];\n\n/**\n * @deprecated The source of truth for supported languages lives in Crab.\n */\nexport const SUPPORTED_LANGUAGES = [\n DEFAULT_LANG,\n 'de',\n 'es',\n 'fr',\n 'hu',\n 'id',\n 'it',\n 'ja',\n 'pl',\n 'pt',\n 'ro',\n 'ru',\n 'th',\n 'tr',\n 'uk',\n 'zh',\n];\n\n/**\n * Verifies and adjusts locale, replacing `_` with `-`.\n *\n * @param locale `es`, `es_ES`, `en-GB`, `en`, `ja`, `ja-JP`, etc.\n * @returns `null` if locale is unrecognized by `Intl.Locale`.\n */\nexport function adjustLocale(locale: string) {\n const localeTrimmed = locale?.trim();\n if (localeTrimmed) {\n try {\n return new Intl.Locale(localeTrimmed.replace('_', '-')).baseName;\n } catch (error) {\n // eslint-disable-next-line no-console\n console.error(error);\n }\n }\n return null;\n}\n\n/**\n * Provides corresponding lang (iso2) for provided locale.\n *\n * @deprecated The use of this function almost always breaks language variants\n * e.g. Simplified and Traditional Chinese.\n * There should be no use case for this function.\n * To select the correct translations from a translations object, pass the\n * locale directly into Crab's getLocalisedMessages.\n * @param locale `es`, `es-ES`, `en-GB`, `en`, `ja`, `ja-JP`, etc.\n * @returns Two-letter ISO 639-1 language code, falling back to `null` if locale is invalid or language is unsupported.\n */\nexport function getLangFromLocale(locale: string) {\n const adjustedLocale = adjustLocale(locale);\n if (adjustedLocale != null) {\n const { language } = new Intl.Locale(adjustedLocale);\n if (SUPPORTED_LANGUAGES.includes(language)) {\n return language;\n }\n }\n return null;\n}\n\n/**\n * Provides corresponding country code (iso2) for locales code with explicit region value.\n *\n * @param locale `es-ES`, `en-GB`, `ja-JP`, etc.\n * @returns `null` if the locale is invalid or the region can‘t be identified.\n */\nexport function getCountryFromLocale(locale: string) {\n const adjustedLocale = adjustLocale(locale);\n return adjustedLocale != null ? (new Intl.Locale(adjustedLocale).region ?? null) : null;\n}\n\n/**\n * Provides the layout direction for a given locale.\n *\n * @param locale `es`, `es-ES`, `en-GB`, `en`, `ja`, `ja-JP`, etc.\n * @returns The layout direction based on the locale, falling back to `Direction.LTR` if the locale is invalid or unsupported.\n */\nexport function getDirectionFromLocale(locale: string) {\n const adjustedLocale = adjustLocale(locale);\n return adjustedLocale != null && RTL_LANGUAGES.includes(new Intl.Locale(adjustedLocale).language)\n ? Direction.RTL\n : Direction.LTR;\n}\n"],"names":["DEFAULT_LANG","DEFAULT_LOCALE","RTL_LANGUAGES","SUPPORTED_LANGUAGES","adjustLocale","locale","localeTrimmed","trim","Intl","Locale","replace","baseName","error","console","getLangFromLocale","adjustedLocale","language","includes","getCountryFromLocale","region","getDirectionFromLocale","Direction","RTL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AAMU,cAAc,GAAGX,YAAY,CAACC,MAAM,CAAC;AAC3C,EAAA,OAAOU,cAAc,IAAI,IAAI,GAAI,IAAIP,IAAI,CAACC,MAAM,CAACM,cAAc,CAAC,CAACI,MAAM,IAAI,IAAI,GAAI,IAAI;AACzF;AAEA;;;;;AAKG;AACG,SAAUC,sBAAsBA,CAACf,MAAc,EAAA;AACnD,EAAA,MAAMU,cAAc,GAAGX,YAAY,CAACC,MAAM,CAAC;EAC3C,OAAOU,cAAc,IAAI,IAAI,IAAIb,aAAa,CAACe,QAAQ,CAAC,IAAIT,IAAI,CAACC,MAAM,CAACM,cAAc,CAAC,CAACC,QAAQ,CAAC,GAC7FK,SAAS,CAACC,GAAG,GACbD,SAAS,CAACE,GAAG;AACnB;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../src/common/locale/index.ts"],"sourcesContent":["import { Direction } from '../direction';\n\nexport const DEFAULT_LANG = 'en';\nexport const DEFAULT_LOCALE = 'en-GB';\n\n/**\n * Languages written right-to-left.\n */\nexport const RTL_LANGUAGES = ['ar', 'he'];\n\n/**\n * @deprecated The source of truth for supported languages lives in Crab.\n */\nexport const SUPPORTED_LANGUAGES = [\n DEFAULT_LANG,\n 'cs',\n 'de',\n 'es',\n 'fr',\n 'hu',\n 'id',\n 'it',\n 'ja',\n 'nl',\n 'pl',\n 'pt',\n 'ro',\n 'ru',\n 'th',\n 'tr',\n 'uk',\n 'zh',\n];\n\n/**\n * Verifies and adjusts locale, replacing `_` with `-`.\n *\n * @param locale `es`, `es_ES`, `en-GB`, `en`, `ja`, `ja-JP`, etc.\n * @returns `null` if locale is unrecognized by `Intl.Locale`.\n */\nexport function adjustLocale(locale: string) {\n const localeTrimmed = locale?.trim();\n if (localeTrimmed) {\n try {\n return new Intl.Locale(localeTrimmed.replace('_', '-')).baseName;\n } catch (error) {\n // eslint-disable-next-line no-console\n console.error(error);\n }\n }\n return null;\n}\n\n/**\n * Provides corresponding lang (iso2) for provided locale.\n *\n * @deprecated The use of this function almost always breaks language variants\n * e.g. Simplified and Traditional Chinese.\n * There should be no use case for this function.\n * To select the correct translations from a translations object, pass the\n * locale directly into Crab's getLocalisedMessages.\n * @param locale `es`, `es-ES`, `en-GB`, `en`, `ja`, `ja-JP`, etc.\n * @returns Two-letter ISO 639-1 language code, falling back to `null` if locale is invalid or language is unsupported.\n */\nexport function getLangFromLocale(locale: string) {\n const adjustedLocale = adjustLocale(locale);\n if (adjustedLocale != null) {\n const { language } = new Intl.Locale(adjustedLocale);\n if (SUPPORTED_LANGUAGES.includes(language)) {\n return language;\n }\n }\n return null;\n}\n\n/**\n * Provides corresponding country code (iso2) for locales code with explicit region value.\n *\n * @param locale `es-ES`, `en-GB`, `ja-JP`, etc.\n * @returns `null` if the locale is invalid or the region can‘t be identified.\n */\nexport function getCountryFromLocale(locale: string) {\n const adjustedLocale = adjustLocale(locale);\n return adjustedLocale != null ? (new Intl.Locale(adjustedLocale).region ?? null) : null;\n}\n\n/**\n * Provides the layout direction for a given locale.\n *\n * @param locale `es`, `es-ES`, `en-GB`, `en`, `ja`, `ja-JP`, etc.\n * @returns The layout direction based on the locale, falling back to `Direction.LTR` if the locale is invalid or unsupported.\n */\nexport function getDirectionFromLocale(locale: string) {\n const adjustedLocale = adjustLocale(locale);\n return adjustedLocale != null && RTL_LANGUAGES.includes(new Intl.Locale(adjustedLocale).language)\n ? Direction.RTL\n : Direction.LTR;\n}\n"],"names":["DEFAULT_LANG","DEFAULT_LOCALE","RTL_LANGUAGES","SUPPORTED_LANGUAGES","adjustLocale","locale","localeTrimmed","trim","Intl","Locale","replace","baseName","error","console","getLangFromLocale","adjustedLocale","language","includes","getCountryFromLocale","region","getDirectionFromLocale","Direction","RTL","LTR"],"mappings":";;AAEO,MAAMA,YAAY,GAAG;AACrB,MAAMC,cAAc,GAAG;AAE9B;;AAEG;MACUC,aAAa,GAAG,CAAC,IAAI,EAAE,IAAI;AAExC;;AAEG;MACUC,mBAAmB,GAAG,CACjCH,YAAY,EACZ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AAI,IAAI;AACzF;AAEA;;;;;AAKG;AACG,SAAUC,sBAAsBA,CAACf,MAAc,EAAA;AACnD,EAAA,MAAMU,cAAc,GAAGX,YAAY,CAACC,MAAM,CAAC;EAC3C,OAAOU,cAAc,IAAI,IAAI,IAAIb,aAAa,CAACe,QAAQ,CAAC,IAAIT,IAAI,CAACC,MAAM,CAACM,cAAc,CAAC,CAACC,QAAQ,CAAC,GAC7FK,SAAS,CAACC,GAAG,GACbD,SAAS,CAACE,GAAG;AACnB;;;;"}
@@ -11,6 +11,7 @@ var hu = require('./hu.json.js');
11
11
  var id = require('./id.json.js');
12
12
  var it = require('./it.json.js');
13
13
  var ja = require('./ja.json.js');
14
+ var nl = require('./nl.json.js');
14
15
  var pl = require('./pl.json.js');
15
16
  var pt = require('./pt.json.js');
16
17
  var ro = require('./ro.json.js');
@@ -32,6 +33,7 @@ const translations = {
32
33
  id: id.default,
33
34
  it: it.default,
34
35
  ja: ja.default,
36
+ nl: nl.default,
35
37
  pl: pl.default,
36
38
  pt: pt.default,
37
39
  ro: ro.default,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../src/i18n/index.ts"],"sourcesContent":["import cs from './cs.json';\nimport de from './de.json';\nimport en from './en.json';\nimport es from './es.json';\nimport fr from './fr.json';\nimport hu from './hu.json';\nimport id from './id.json';\nimport it from './it.json';\nimport ja from './ja.json';\nimport pl from './pl.json';\nimport pt from './pt.json';\nimport ro from './ro.json';\nimport ru from './ru.json';\nimport th from './th.json';\nimport tr from './tr.json';\nimport uk from './uk.json';\nimport zhCN from './zh-CN.json';\nimport zhHK from './zh-HK.json';\n\nconst translations: Record<string, Record<string, string>> = {\n cs,\n de,\n en,\n 'en-US': en,\n es,\n fr,\n hu,\n id,\n it,\n ja,\n pl,\n pt,\n ro,\n ru,\n th,\n tr,\n uk,\n 'zh-CN': zhCN,\n 'zh-HK': zhHK,\n};\n\nexport default translations;\n"],"names":["translations","cs","de","en","es","fr","hu","id","it","ja","pl","pt","ro","ru","th","tr","uk","zhCN","zhHK"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAmBA,MAAMA,YAAY,GAA2C;MAC3DC,UAAE;MACFC,UAAE;MACFC,UAAE;AACF,EAAA,OAAO,EAAEA,UAAE;MACXC,UAAE;MACFC,UAAE;MACFC,UAAE;MACFC,UAAE;MACFC,UAAE;MACFC,UAAE;MACFC,UAAE;MACFC,UAAE;MACFC,UAAE;MACFC,UAAE;MACFC,UAAE;MACFC,UAAE;MACFC,UAAE;AACF,EAAA,OAAO,EAAEC,YAAI;AACb,EAAA,OAAO,EAAEC;;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../src/i18n/index.ts"],"sourcesContent":["import cs from './cs.json';\nimport de from './de.json';\nimport en from './en.json';\nimport es from './es.json';\nimport fr from './fr.json';\nimport hu from './hu.json';\nimport id from './id.json';\nimport it from './it.json';\nimport ja from './ja.json';\nimport nl from './nl.json';\nimport pl from './pl.json';\nimport pt from './pt.json';\nimport ro from './ro.json';\nimport ru from './ru.json';\nimport th from './th.json';\nimport tr from './tr.json';\nimport uk from './uk.json';\nimport zhCN from './zh-CN.json';\nimport zhHK from './zh-HK.json';\n\nconst translations: Record<string, Record<string, string>> = {\n cs,\n de,\n en,\n 'en-US': en,\n es,\n fr,\n hu,\n id,\n it,\n ja,\n nl,\n pl,\n pt,\n ro,\n ru,\n th,\n tr,\n uk,\n 'zh-CN': zhCN,\n 'zh-HK': zhHK,\n};\n\nexport default translations;\n"],"names":["translations","cs","de","en","es","fr","hu","id","it","ja","nl","pl","pt","ro","ru","th","tr","uk","zhCN","zhHK"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAoBA,MAAMA,YAAY,GAA2C;MAC3DC,UAAE;MACFC,UAAE;MACFC,UAAE;AACF,EAAA,OAAO,EAAEA,UAAE;MACXC,UAAE;MACFC,UAAE;MACFC,UAAE;MACFC,UAAE;MACFC,UAAE;MACFC,UAAE;MACFC,UAAE;MACFC,UAAE;MACFC,UAAE;MACFC,UAAE;MACFC,UAAE;MACFC,UAAE;MACFC,UAAE;MACFC,UAAE;AACF,EAAA,OAAO,EAAEC,YAAI;AACb,EAAA,OAAO,EAAEC;;;;;"}
@@ -7,6 +7,7 @@ import hu from './hu.json.mjs';
7
7
  import id from './id.json.mjs';
8
8
  import it from './it.json.mjs';
9
9
  import ja from './ja.json.mjs';
10
+ import nl from './nl.json.mjs';
10
11
  import pl from './pl.json.mjs';
11
12
  import pt from './pt.json.mjs';
12
13
  import ro from './ro.json.mjs';
@@ -28,6 +29,7 @@ const translations = {
28
29
  id,
29
30
  it,
30
31
  ja,
32
+ nl,
31
33
  pl,
32
34
  pt,
33
35
  ro,
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../src/i18n/index.ts"],"sourcesContent":["import cs from './cs.json';\nimport de from './de.json';\nimport en from './en.json';\nimport es from './es.json';\nimport fr from './fr.json';\nimport hu from './hu.json';\nimport id from './id.json';\nimport it from './it.json';\nimport ja from './ja.json';\nimport pl from './pl.json';\nimport pt from './pt.json';\nimport ro from './ro.json';\nimport ru from './ru.json';\nimport th from './th.json';\nimport tr from './tr.json';\nimport uk from './uk.json';\nimport zhCN from './zh-CN.json';\nimport zhHK from './zh-HK.json';\n\nconst translations: Record<string, Record<string, string>> = {\n cs,\n de,\n en,\n 'en-US': en,\n es,\n fr,\n hu,\n id,\n it,\n ja,\n pl,\n pt,\n ro,\n ru,\n th,\n tr,\n uk,\n 'zh-CN': zhCN,\n 'zh-HK': zhHK,\n};\n\nexport default translations;\n"],"names":["translations","cs","de","en","es","fr","hu","id","it","ja","pl","pt","ro","ru","th","tr","uk","zhCN","zhHK"],"mappings":";;;;;;;;;;;;;;;;;;;AAmBA,MAAMA,YAAY,GAA2C;EAC3DC,EAAE;EACFC,EAAE;EACFC,EAAE;AACF,EAAA,OAAO,EAAEA,EAAE;EACXC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;AACF,EAAA,OAAO,EAAEC,IAAI;AACb,EAAA,OAAO,EAAEC;;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":["../../src/i18n/index.ts"],"sourcesContent":["import cs from './cs.json';\nimport de from './de.json';\nimport en from './en.json';\nimport es from './es.json';\nimport fr from './fr.json';\nimport hu from './hu.json';\nimport id from './id.json';\nimport it from './it.json';\nimport ja from './ja.json';\nimport nl from './nl.json';\nimport pl from './pl.json';\nimport pt from './pt.json';\nimport ro from './ro.json';\nimport ru from './ru.json';\nimport th from './th.json';\nimport tr from './tr.json';\nimport uk from './uk.json';\nimport zhCN from './zh-CN.json';\nimport zhHK from './zh-HK.json';\n\nconst translations: Record<string, Record<string, string>> = {\n cs,\n de,\n en,\n 'en-US': en,\n es,\n fr,\n hu,\n id,\n it,\n ja,\n nl,\n pl,\n pt,\n ro,\n ru,\n th,\n tr,\n uk,\n 'zh-CN': zhCN,\n 'zh-HK': zhHK,\n};\n\nexport default translations;\n"],"names":["translations","cs","de","en","es","fr","hu","id","it","ja","nl","pl","pt","ro","ru","th","tr","uk","zhCN","zhHK"],"mappings":";;;;;;;;;;;;;;;;;;;;AAoBA,MAAMA,YAAY,GAA2C;EAC3DC,EAAE;EACFC,EAAE;EACFC,EAAE;AACF,EAAA,OAAO,EAAEA,EAAE;EACXC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;AACF,EAAA,OAAO,EAAEC,IAAI;AACb,EAAA,OAAO,EAAEC;;;;;"}
@@ -0,0 +1,81 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var nl = {
6
+ "neptune.Button.loadingAriaLabel": "laden",
7
+ "neptune.Chips.ariaLabel": "{choice} wissen",
8
+ "neptune.ClearButton.ariaLabel": "Wissen",
9
+ "neptune.CloseButton.ariaLabel": "Sluiten",
10
+ "neptune.DateInput.day.label": "Dag",
11
+ "neptune.DateInput.day.placeholder": "DD",
12
+ "neptune.DateInput.month.label": "Maand",
13
+ "neptune.DateInput.year.label": "Jaar",
14
+ "neptune.DateInput.year.placeholder": "JJJJ",
15
+ "neptune.DateLookup.day": "dag",
16
+ "neptune.DateLookup.goTo20YearView": "Naar 20-jaarsoverzicht",
17
+ "neptune.DateLookup.month": "maand",
18
+ "neptune.DateLookup.next": "volgende",
19
+ "neptune.DateLookup.previous": "vorige",
20
+ "neptune.DateLookup.selected": "geselecteerd",
21
+ "neptune.DateLookup.twentyYears": "20 jaar",
22
+ "neptune.DateLookup.year": "jaar",
23
+ "neptune.FlowNavigation.back": "terug naar vorige stap",
24
+ "neptune.Info.ariaLabel": "Meer informatie",
25
+ "neptune.Label.optional": "(Optioneel)",
26
+ "neptune.Link.opensInNewTab": "(wordt geopend in een nieuw tabblad)",
27
+ "neptune.MoneyInput.Select.placeholder": "Selecteer een optie...",
28
+ "neptune.MoneyInput.Select.searchPlaceholder": "Typ een valuta of land",
29
+ "neptune.MoneyInput.Select.selectCurrencyLabel": "Selecteer valuta",
30
+ "neptune.PhoneNumberInput.SelectInput.placeholder": "Selecteer een optie...",
31
+ "neptune.PhoneNumberInput.countryCodeLabel": "Landcode",
32
+ "neptune.PhoneNumberInput.phoneNumberLabel": "Telefoonnummer",
33
+ "neptune.Select.searchPlaceholder": "Zoeken...",
34
+ "neptune.SelectInput.noResultsFound": "Geen resultaten gevonden",
35
+ "neptune.StatusIcon.iconLabel.error": "Fout:",
36
+ "neptune.StatusIcon.iconLabel.information": "Informatie:",
37
+ "neptune.StatusIcon.iconLabel.pending": "In behandeling:",
38
+ "neptune.StatusIcon.iconLabel.success": "Gelukt:",
39
+ "neptune.StatusIcon.iconLabel.warning": "Waarschuwing:",
40
+ "neptune.Summary.statusDone": "Item klaar",
41
+ "neptune.Summary.statusNotDone": "Te doen-item",
42
+ "neptune.Summary.statusPending": "Item in behandeling",
43
+ "neptune.Table.actionHeader": "Actie",
44
+ "neptune.Table.emptyData": "Geen resultaten gevonden",
45
+ "neptune.Table.loaded": "Tabelgegevens zijn geladen",
46
+ "neptune.Table.loading": "Tabelgegevens worden geladen",
47
+ "neptune.Table.refreshPage": "Pagina vernieuwen",
48
+ "neptune.Upload.csButtonText": "Nog een bestand uploaden?",
49
+ "neptune.Upload.csFailureText": "Uploaden mislukt. Probeer het opnieuw",
50
+ "neptune.Upload.csSuccessText": "Uploaden voltooid!",
51
+ "neptune.Upload.csTooLargeMessage": "Upload een bestand kleiner dan {maxSize} MB",
52
+ "neptune.Upload.csWrongTypeMessage": "Het bestandstype wordt niet ondersteund. Probeer het opnieuw met een ander bestand",
53
+ "neptune.Upload.psButtonText": "Annuleren",
54
+ "neptune.Upload.psProcessingText": "Uploaden...",
55
+ "neptune.Upload.retry": "Opnieuw proberen",
56
+ "neptune.Upload.usButtonText": "Of selecteer een bestand",
57
+ "neptune.Upload.usDropMessage": "Sleep het bestand hierheen om het te uploaden",
58
+ "neptune.Upload.usPlaceholder": "Sleep een bestand van maximaal {maxSize} MB",
59
+ "neptune.UploadButton.allFileTypes": "Alle bestandstypen",
60
+ "neptune.UploadButton.dropFiles": "Sleep het bestand hierheen om het te uploaden",
61
+ "neptune.UploadButton.instructions": "{fileTypes}, kleiner dan {size} MB",
62
+ "neptune.UploadButton.maximumFiles": "Maximaal {maxFiles} bestanden.",
63
+ "neptune.UploadButton.uploadFile": "Bestand uploaden",
64
+ "neptune.UploadButton.uploadFiles": "Bestanden uploaden",
65
+ "neptune.UploadInput.deleteModalBody": "Als je dit bestand verwijdert, wordt het van ons systeem gewist.",
66
+ "neptune.UploadInput.deleteModalCancelButtonText": "Annuleren",
67
+ "neptune.UploadInput.deleteModalConfirmButtonText": "Verwijderen",
68
+ "neptune.UploadInput.deleteModalTitle": "Weet je zeker dat je dit bestand wilt verwijderen?",
69
+ "neptune.UploadInput.fileIsTooLarge": "Bestand is te groot",
70
+ "neptune.UploadInput.fileTypeNotSupported": "Bestandstype niet ondersteund",
71
+ "neptune.UploadInput.maximumFilesAlreadyUploaded": "Deze upload is mislukt omdat we maar {maxFilesAllowed} bestanden tegelijk kunnen accepteren.",
72
+ "neptune.UploadItem.deleting": "Verwijderen...",
73
+ "neptune.UploadItem.removeFile": "Bestand {filename} verwijderen",
74
+ "neptune.UploadItem.uploaded": "Geüpload",
75
+ "neptune.UploadItem.uploadedFile": "Geüpload bestand",
76
+ "neptune.UploadItem.uploading": "Uploaden...",
77
+ "neptune.UploadItem.uploadingFailed": "Uploaden mislukt"
78
+ };
79
+
80
+ exports.default = nl;
81
+ //# sourceMappingURL=nl.json.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nl.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,77 @@
1
+ var nl = {
2
+ "neptune.Button.loadingAriaLabel": "laden",
3
+ "neptune.Chips.ariaLabel": "{choice} wissen",
4
+ "neptune.ClearButton.ariaLabel": "Wissen",
5
+ "neptune.CloseButton.ariaLabel": "Sluiten",
6
+ "neptune.DateInput.day.label": "Dag",
7
+ "neptune.DateInput.day.placeholder": "DD",
8
+ "neptune.DateInput.month.label": "Maand",
9
+ "neptune.DateInput.year.label": "Jaar",
10
+ "neptune.DateInput.year.placeholder": "JJJJ",
11
+ "neptune.DateLookup.day": "dag",
12
+ "neptune.DateLookup.goTo20YearView": "Naar 20-jaarsoverzicht",
13
+ "neptune.DateLookup.month": "maand",
14
+ "neptune.DateLookup.next": "volgende",
15
+ "neptune.DateLookup.previous": "vorige",
16
+ "neptune.DateLookup.selected": "geselecteerd",
17
+ "neptune.DateLookup.twentyYears": "20 jaar",
18
+ "neptune.DateLookup.year": "jaar",
19
+ "neptune.FlowNavigation.back": "terug naar vorige stap",
20
+ "neptune.Info.ariaLabel": "Meer informatie",
21
+ "neptune.Label.optional": "(Optioneel)",
22
+ "neptune.Link.opensInNewTab": "(wordt geopend in een nieuw tabblad)",
23
+ "neptune.MoneyInput.Select.placeholder": "Selecteer een optie...",
24
+ "neptune.MoneyInput.Select.searchPlaceholder": "Typ een valuta of land",
25
+ "neptune.MoneyInput.Select.selectCurrencyLabel": "Selecteer valuta",
26
+ "neptune.PhoneNumberInput.SelectInput.placeholder": "Selecteer een optie...",
27
+ "neptune.PhoneNumberInput.countryCodeLabel": "Landcode",
28
+ "neptune.PhoneNumberInput.phoneNumberLabel": "Telefoonnummer",
29
+ "neptune.Select.searchPlaceholder": "Zoeken...",
30
+ "neptune.SelectInput.noResultsFound": "Geen resultaten gevonden",
31
+ "neptune.StatusIcon.iconLabel.error": "Fout:",
32
+ "neptune.StatusIcon.iconLabel.information": "Informatie:",
33
+ "neptune.StatusIcon.iconLabel.pending": "In behandeling:",
34
+ "neptune.StatusIcon.iconLabel.success": "Gelukt:",
35
+ "neptune.StatusIcon.iconLabel.warning": "Waarschuwing:",
36
+ "neptune.Summary.statusDone": "Item klaar",
37
+ "neptune.Summary.statusNotDone": "Te doen-item",
38
+ "neptune.Summary.statusPending": "Item in behandeling",
39
+ "neptune.Table.actionHeader": "Actie",
40
+ "neptune.Table.emptyData": "Geen resultaten gevonden",
41
+ "neptune.Table.loaded": "Tabelgegevens zijn geladen",
42
+ "neptune.Table.loading": "Tabelgegevens worden geladen",
43
+ "neptune.Table.refreshPage": "Pagina vernieuwen",
44
+ "neptune.Upload.csButtonText": "Nog een bestand uploaden?",
45
+ "neptune.Upload.csFailureText": "Uploaden mislukt. Probeer het opnieuw",
46
+ "neptune.Upload.csSuccessText": "Uploaden voltooid!",
47
+ "neptune.Upload.csTooLargeMessage": "Upload een bestand kleiner dan {maxSize} MB",
48
+ "neptune.Upload.csWrongTypeMessage": "Het bestandstype wordt niet ondersteund. Probeer het opnieuw met een ander bestand",
49
+ "neptune.Upload.psButtonText": "Annuleren",
50
+ "neptune.Upload.psProcessingText": "Uploaden...",
51
+ "neptune.Upload.retry": "Opnieuw proberen",
52
+ "neptune.Upload.usButtonText": "Of selecteer een bestand",
53
+ "neptune.Upload.usDropMessage": "Sleep het bestand hierheen om het te uploaden",
54
+ "neptune.Upload.usPlaceholder": "Sleep een bestand van maximaal {maxSize} MB",
55
+ "neptune.UploadButton.allFileTypes": "Alle bestandstypen",
56
+ "neptune.UploadButton.dropFiles": "Sleep het bestand hierheen om het te uploaden",
57
+ "neptune.UploadButton.instructions": "{fileTypes}, kleiner dan {size} MB",
58
+ "neptune.UploadButton.maximumFiles": "Maximaal {maxFiles} bestanden.",
59
+ "neptune.UploadButton.uploadFile": "Bestand uploaden",
60
+ "neptune.UploadButton.uploadFiles": "Bestanden uploaden",
61
+ "neptune.UploadInput.deleteModalBody": "Als je dit bestand verwijdert, wordt het van ons systeem gewist.",
62
+ "neptune.UploadInput.deleteModalCancelButtonText": "Annuleren",
63
+ "neptune.UploadInput.deleteModalConfirmButtonText": "Verwijderen",
64
+ "neptune.UploadInput.deleteModalTitle": "Weet je zeker dat je dit bestand wilt verwijderen?",
65
+ "neptune.UploadInput.fileIsTooLarge": "Bestand is te groot",
66
+ "neptune.UploadInput.fileTypeNotSupported": "Bestandstype niet ondersteund",
67
+ "neptune.UploadInput.maximumFilesAlreadyUploaded": "Deze upload is mislukt omdat we maar {maxFilesAllowed} bestanden tegelijk kunnen accepteren.",
68
+ "neptune.UploadItem.deleting": "Verwijderen...",
69
+ "neptune.UploadItem.removeFile": "Bestand {filename} verwijderen",
70
+ "neptune.UploadItem.uploaded": "Geüpload",
71
+ "neptune.UploadItem.uploadedFile": "Geüpload bestand",
72
+ "neptune.UploadItem.uploading": "Uploaden...",
73
+ "neptune.UploadItem.uploadingFailed": "Uploaden mislukt"
74
+ };
75
+
76
+ export { nl as default };
77
+ //# sourceMappingURL=nl.json.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nl.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/common/locale/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,eAAO,MAAM,YAAY,OAAO,CAAC;AACjC,eAAO,MAAM,cAAc,UAAU,CAAC;AAEtC;;GAEG;AACH,eAAO,MAAM,aAAa,UAAe,CAAC;AAE1C;;GAEG;AACH,eAAO,MAAM,mBAAmB,UAiB/B,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,iBAW1C;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,iBAS/C;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,iBAGlD;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,MAAM,iCAKpD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/common/locale/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,eAAO,MAAM,YAAY,OAAO,CAAC;AACjC,eAAO,MAAM,cAAc,UAAU,CAAC;AAEtC;;GAEG;AACH,eAAO,MAAM,aAAa,UAAe,CAAC;AAE1C;;GAEG;AACH,eAAO,MAAM,mBAAmB,UAmB/B,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,iBAW1C;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,iBAS/C;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,iBAGlD;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,MAAM,iCAKpD"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/i18n/index.ts"],"names":[],"mappings":"AAmBA,QAAA,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAoBxD,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/i18n/index.ts"],"names":[],"mappings":"AAoBA,QAAA,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAqBxD,CAAC;AAEF,eAAe,YAAY,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transferwise/components",
3
- "version": "0.0.0-experimental-118c6ed",
3
+ "version": "0.0.0-experimental-8d63612",
4
4
  "description": "Neptune React components",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -91,16 +91,16 @@
91
91
  "rollup": "^4.44.2",
92
92
  "rollup-preserve-directives": "^1.1.3",
93
93
  "storybook": "^8.6.14",
94
- "@transferwise/less-config": "3.1.2",
95
- "@transferwise/neptune-css": "0.0.0-experimental-118c6ed",
96
- "@wise/components-theming": "0.0.0-experimental-118c6ed",
97
- "@wise/wds-configs": "0.0.0"
94
+ "@transferwise/neptune-css": "0.0.0-experimental-8d63612",
95
+ "@wise/components-theming": "0.0.0-experimental-8d63612",
96
+ "@wise/wds-configs": "0.0.0",
97
+ "@transferwise/less-config": "3.1.2"
98
98
  },
99
99
  "peerDependencies": {
100
100
  "@transferwise/icons": "^3.22.3",
101
- "@transferwise/neptune-css": "0.0.0-experimental-118c6ed",
101
+ "@transferwise/neptune-css": "0.0.0-experimental-8d63612",
102
102
  "@wise/art": "^2.23.0",
103
- "@wise/components-theming": "0.0.0-experimental-118c6ed",
103
+ "@wise/components-theming": "0.0.0-experimental-8d63612",
104
104
  "react": ">=18",
105
105
  "react-dom": ">=18",
106
106
  "react-intl": "^5.10.0 || ^6"
@@ -31,7 +31,7 @@ describe('locale utils', () => {
31
31
  ['ar-dz', null],
32
32
  ['ar-iq', null],
33
33
  ['zh-tw', 'zh'],
34
- ['nl-nl', null],
34
+ ['nl-nl', 'nl'],
35
35
  ])('locale "%s" -> language "%s"', (locale, expectedValue) => {
36
36
  expect(getLangFromLocale(locale)).toBe(expectedValue);
37
37
  });
@@ -13,6 +13,7 @@ export const RTL_LANGUAGES = ['ar', 'he'];
13
13
  */
14
14
  export const SUPPORTED_LANGUAGES = [
15
15
  DEFAULT_LANG,
16
+ 'cs',
16
17
  'de',
17
18
  'es',
18
19
  'fr',
@@ -20,6 +21,7 @@ export const SUPPORTED_LANGUAGES = [
20
21
  'id',
21
22
  'it',
22
23
  'ja',
24
+ 'nl',
23
25
  'pl',
24
26
  'pt',
25
27
  'ro',
package/src/i18n/index.ts CHANGED
@@ -7,6 +7,7 @@ import hu from './hu.json';
7
7
  import id from './id.json';
8
8
  import it from './it.json';
9
9
  import ja from './ja.json';
10
+ import nl from './nl.json';
10
11
  import pl from './pl.json';
11
12
  import pt from './pt.json';
12
13
  import ro from './ro.json';
@@ -28,6 +29,7 @@ const translations: Record<string, Record<string, string>> = {
28
29
  id,
29
30
  it,
30
31
  ja,
32
+ nl,
31
33
  pl,
32
34
  pt,
33
35
  ro,