Commit graph

66 commits

Author SHA1 Message Date
jorenbroekema
683d5c1c9c chore: upgrade to latest TSC to fix TSC bug caused by prev commit 2022-02-10 13:40:26 +01:00
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
jorenbroekema
db1ad6d236 chore(localize): loadingComplete localizeNamespacesLoaded timing issue 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
jorenbroekema
8a766644db fix(localize,form-core): wait for localize before updating feedback 2021-07-07 18:03:43 +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
Thijs Louisse
ccd757fa39 fix: many types 2021-04-12 15:08:02 +02:00
Konstantinos Norgias
77a0424595 chore: add protected and private type info 2021-04-01 19:40:43 +02:00
Thijs Louisse
a9c55bc17b fix(localize): folder restructure and Chrome corrections 2021-01-06 15:12:47 +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
Thomas Allmer
de0e0d52b5 chore: remove not needed index.d.ts files, minor type improvements 2020-09-15 10:48:34 +02:00
Joren Broekema
b01cacbded fix(localize): align on common Intl type and reduce duplicates 2020-09-15 10:48:34 +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
Joren Broekema
d9961a0a76 chore: fix type problems before release 2020-08-10 15:35:17 +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
Thomas Allmer
5b8a9915a3 fix(localize): loading of new translations 2020-06-18 11:54:11 +02:00
Thijs Louisse
271520d55c feat(localize): support google translate 2020-06-08 14:46:33 +02:00
Thomas Allmer
e2eb0e0077 feat: use singleton manager to support nested npm installations 2020-05-18 15:25:21 +02:00
DemeterDimitri
89a84a8b29 fix(localization): force TR currency code at the end (#641) 2020-04-29 10:05:06 +02:00
DemeterDimitri
1bec11a267 fix(input-amount): normalize added for currency label (#618) 2020-03-04 17:33:09 +01:00
Sandipan Basak
a9ea72b7df fix(localize): force symbols for locale 'en-AU' (#619) 2020-03-04 17:33:09 +01:00
Thijs Louisse
97678dd49b chore: cleanup todos 2020-02-26 14:32:52 +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
Thomas Allmer
bf7603e7e2 fix(localize): fire localeChanged after loading missing locales 2020-01-13 13:58:03 +01:00
qa46hx
367e2f4f96 fix(localize): allow negative bulgarian numbers 2020-01-07 11:06:25 +01:00
Joren Broekema
a5a9f975a6 feat: refactor the overlay system implementations, docs and demos 2019-11-29 17:32:31 +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
4500557f78 chore(localize): rename normalizeDate to normalizeIntlDate 2019-10-04 14:27:10 +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
edd7396e15 fix(input-amount): use minus sign unicode instead of hypen-minus 2019-09-20 10:13:06 +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
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
Thijs Louisse
c151f01b0b fix(localize): for bg-BG locale, correct Intl output for group separator 2019-08-07 13:21:26 +02:00
Joren Broekema
25e7b6d17b chore: cleanup references 2019-07-23 10:22:52 +02:00