pndewit
fad9d8e58f
feat(localize): add option to show the key as a fallback when a locale is missing a translation
2021-11-24 09:49:46 +01:00
qa46hx
c4562f7e64
fix: use html & unsafeStatic from @open-wc/testing
2021-11-11 10:02:47 +01:00
jorenbroekema
db1ad6d236
chore(localize): loadingComplete localizeNamespacesLoaded timing issue
2021-07-21 12:11:03 +02:00
jorenbroekema
f843278c50
chore: change to await localizeNamespacesLoaded + nextframe
2021-07-21 12:11:03 +02:00
jorenbroekema
c544af4eb9
feat(localize): await loadingComplete before sending locale changed
2021-07-21 12:11:03 +02:00
qa46hx
9648d418f2
feat(localize): move parseNumber to @lion/localize
2021-07-15 09:07:45 +02:00
Joren Broekema
61d6c5fa33
Merge pull request #1387 from dereli/fix/localize-reset
...
Race condition in LocalizeManager
2021-06-01 17:56:51 +02:00
Zubeyr Dereli
5ca3d27501
fix(localize): reset storage correctly
...
long running imports were polluting newly reset storage
2021-06-01 17:38:42 +02:00
Konstantinos Norgias
72067c0d19
chore: format & changeset
2021-05-20 12:38:58 +02:00
Konstantinos Norgias
e17f7bdfa6
feat: upgrade to lit2
...
Co-authored-by: Thijs Louisse <Thijs.Louisse@ing.com>
2021-05-20 12:21:43 +02:00
Konstantinos Norgias
77a0424595
chore: add protected and private type info
2021-04-01 19:40:43 +02:00
Thomas Allmer
5db622e9da
feat: as BREAKING CHANGE add exports & convert to static docs page
2021-03-15 15:22:37 +01:00
qa46hx
8fdfe37a3c
chore: update to latest eslint
2021-02-25 09:40:14 +01:00
Joren Broekema
8fb7e7a193
fix: types base constructor same return type
2021-01-13 17:05:07 +01:00
Joren Broekema
1f62ed8b74
feat: upgrade to popper 2
...
Co-authored-by: Thijs Louisse <Thijs.Louisse@ing.com>
2021-01-05 14:18:21 +01:00
Marcos Gil
3ada1aef83
feat(localize): date and number postProcessors
2020-11-16 17:44:00 +01:00
qa46hx
8ca71b8f06
fix(localize): do not parse non-existing dates
2020-11-03 15:06:49 +01:00
Thomas Allmer
618f269829
chore: enable webkit tests
...
Co-authored-by: Joren Broekema <Joren.Broekema@ing.com>
Co-authored-by: Yesil Ahmet <Yesil.Ahmet@ing.com>
Co-authored-by: Thijs Louisse <Thijs.Louisse@ing.com>
2020-10-27 14:05:32 +01:00
demeteren
7682e5208d
fix(localization): format negative values properly for Turkish locale
2020-10-12 09:26:51 +02:00
Joren Broekema
874ff48339
feat(form-core): form-core types
...
Co-authored-by: Thijs Louisse <Thijs.Louisse@ing.com>
2020-09-02 09:02:47 +02:00
Ahmet Yesil
9ecab4d5b2
chore: remove LionSingleton
2020-08-05 17:26:52 +02:00
Joren Broekema
09d9675963
feat(localize): add types to localize
...
Co-authored-by: narzac <narzac@gmail.com>
2020-08-03 17:00:26 +02:00
Ashwani
cddd51adcb
fix(localize): format hungarian & bulgarian dates
...
- fix memoize function & correct computation of date format
- modify date format in bulgarian validation messages
BREAKING CHANGE: N
closes #540
2020-07-06 16:27:43 +02:00
Joren Broekema
92d85b567a
chore: fix failing tests
2020-06-30 17:24:19 +02:00
Thijs Louisse
271520d55c
feat(localize): support google translate
2020-06-08 14:46:33 +02:00
DemeterDimitri
89a84a8b29
fix(localization): force TR currency code at the end ( #641 )
2020-04-29 10:05:06 +02:00
Joren Broekema
a451d4fc8a
chore: apply prettier formatting changes
2020-04-29 10:05:06 +02:00
Sandipan Basak
a9ea72b7df
fix(localize): force symbols for locale 'en-AU' ( #619 )
2020-03-04 17:33:09 +01:00
demeteren
8fb3b23755
fix(localize): if locale is set to tr, currency TRY should display TL
2020-02-03 10:44:35 +03:00
qa46hx
367e2f4f96
fix(localize): allow negative bulgarian numbers
2020-01-07 11:06:25 +01:00
Thijs Louisse
708b6f991d
feat(localize): add getCurrencyName
2019-11-27 13:40:15 +01:00
Joren Broekema
66d3d390ae
feat: remove all deprecations from lion
2019-11-13 11:00:48 +01:00
r4zorgeek
08a91291d9
fix(localize): unforce defaults when options are given
...
should not force defaults when at least one of the three date options is given (day, month, year).
also added test cases and storybook demo.
2019-10-23 15:50:49 +02:00
qa46hx
1f4025032f
fix(localize): add tests for percent in formatNumberToParts
2019-10-09 09:06:49 +02:00
qa46hx
093cfa090a
fix(localize): use option.locale to get separator in formatNumberToParts
2019-10-09 09:05:07 +02:00
Erik Kroes
e60b819188
Merge pull request #303 from ing-bank/fix/normalize-date-in-validators
...
Fix/normalize date in validators
2019-10-07 14:00:39 +02:00
qa46hx
955e524ff2
chore(calendar): move normalizeDateTime to localize
2019-10-04 14:18:31 +02:00
qa46hx
20b77a40b1
fix(localize): allow multiple characters for currency symbols
2019-09-30 09:18:49 +02:00
Joren Broekema
85beb18e26
fix(localize): use minus sign unicode instead of hypen-minus
2019-09-19 16:01:04 +02:00
Joren Broekema
c1e96f79e2
chore(localize): deprecate language-only locales
2019-08-23 16:43:42 +02:00
Joren Broekema
0c9c116e46
chore(localize): add test to check for BG space separator
2019-08-16 11:28:38 +02:00
Jose C Perea
b0d6f496f8
fix(localize): update the way to obtain the group separator for a number
...
four digit numbers can be written without separator, so it would be
safer to obtain the separator by formatting a five digit number. The bug
was found with the locale 'es-ES', where the format returned for '1000'
was '1000' instead of the expected '1.000'. We add the specific expect
clause on the test for it.
On branch fix/numberGroupSeparator
Changes to be committed:
modified: packages/localize/src/number/getGroupSeparator.js
modified: packages/localize/test/number/getGroupSeparator.test.js
2019-08-13 19:04:31 +02:00
Mikhail Bashkirov
e76fa4c2dd
chore(localize): fix typo in test
2019-07-31 11:11:21 +02:00
Mikhail Bashkirov
3b889e31e1
fix: public test-helpers
2019-07-30 15:50:53 +02:00
Mikhail Bashkirov
6321777ec7
chore(localize): remove side effects between tests
2019-07-18 11:52:50 +02:00
Mikhail Bashkirov
270de8a296
fix(localize): set default fallback locale "en-GB" ( fix #152 )
2019-07-15 15:07:28 +02:00
Mikhail Bashkirov
e7ea9cb6f4
fix(localize): support fallback locale
2019-07-15 15:03:44 +02:00
Mikhail Bashkirov
18589f4be7
fix(localize): observe <html lang> attribute
2019-07-09 17:06:59 +02:00
Mikhail Bashkirov
3115c50d59
fix(localize): don't fire localeChanged event if set to the same locale
2019-07-09 09:23:47 +02:00
bverhoef
8fb70c2080
fix(localize): return sign to the front of the currency formatted value in Dutch
2019-06-27 10:46:39 +02:00