-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
constants.js
49 lines (45 loc) · 1.59 KB
/
constants.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// @flow strict
// Please note that values here do not have to match supported locales even though it makes a lot of
// sense to match them. Expand as needed. See: https://www.iso.org/iso-4217-currency-codes.html
//
// Note: always verify that `CcyMnrUnts` equals "2" (https://www.currency-iso.org/dam/downloads/lists/list_one.xml), for example:
//
// ```
// <CcyNtry>
// <CtryNm>SVALBARD AND JAN MAYEN</CtryNm>
// <CcyNm>Norwegian Krone</CcyNm>
// <Ccy>NOK</Ccy>
// <CcyNbr>578</CcyNbr>
// <CcyMnrUnts>2</CcyMnrUnts> <<<
// </CcyNtry>
// ```
//
// Other currencies might need a special attention.
export type SupportedCurrencies =
| 'AED' // UAE Dirham
| 'CZK' // Czech Koruna
| 'USD' // US Dollar
| 'MXN' // Mexican Peso
| 'NOK' // Norwegian Krone
| 'RUB' // Russian Ruble
| 'UAH'; // Hryvnia
// Please note that values here do not have to match supported currencies even though it makes
// a lot of sense to match them. Expand as needed.
//
// Supported locale must follow BCP 47 formatting (https://tools.ietf.org/html/bcp47)
export type SupportedLocales =
| 'ar-AR' // Arabic
| 'ar-AR-u-nu-arab' // Arabic with "Arabic-Indic digits"
| 'cs-CZ' // Czech
| 'en-US' // English - USA
| 'es-MX' // Spanish - Mexico
| 'no-NO' // Norwegian
| 'ru-RU' // Russian
| 'uk-UA'; // Ukrainian
// LTR languages display content from left to right
// RTL languages display content from right to left
//
// See: https://rtlstyling.com/
// See: https://material.io/design/usability/bidirectionality.html
export type SupportedDirections = 'ltr' | 'rtl';
export const MOBILE_WIDTH_BOUNDARY = 600;