Commit Graph

7781 Commits

Author SHA1 Message Date
Jacob Overgaard
5345cfbe48 update docs 2023-07-27 15:13:46 +02:00
Jacob Overgaard
1878078cd5 convert language to es module 2023-07-27 15:12:42 +02:00
Jacob Overgaard
17fc66a4fa register fallback language 2023-07-27 14:42:33 +02:00
Jacob Overgaard
a91d454317 add docs and fallback language 2023-07-27 14:42:26 +02:00
Jacob Overgaard
7a1fc3d612 add localization documentation 2023-07-27 14:36:00 +02:00
Jacob Overgaard
cbf3528d2f keynotfound story 2023-07-27 14:12:20 +02:00
Jacob Overgaard
ab5cde196c add story to localize 2023-07-27 14:09:18 +02:00
Jacob Overgaard
671f726811 use correct keys 2023-07-27 13:53:22 +02:00
Jacob Overgaard
c5fe841446 convert en_us from current backoffice 2023-07-27 13:53:16 +02:00
Jacob Overgaard
f554d4ca84 set default language to 'en_us' 2023-07-27 13:46:19 +02:00
Jacob Overgaard
478d6da164 lowercase iso codes 2023-07-27 13:46:06 +02:00
Jacob Overgaard
a8afe7cc27 test fallback language 2023-07-27 13:16:44 +02:00
Jacob Overgaard
388ae4d54c test that values work inside a subscription 2023-07-27 13:16:38 +02:00
Jacob Overgaard
afc5916efd use test helper elementUpdated() 2023-07-27 13:12:43 +02:00
Jacob Overgaard
1d12ea996f use aTimeout to wait 2023-07-27 13:02:49 +02:00
Jacob Overgaard
3019f5a513 Revert "add sleep test utility"
This reverts commit fde921155c.
2023-07-27 13:01:59 +02:00
Jacob Overgaard
a5f6a344c2 format check 2023-07-27 12:45:00 +02:00
Jacob Overgaard
7bf9000814 linting 2023-07-27 12:44:50 +02:00
Jacob Overgaard
b7ec665da8 organize imports 2023-07-27 12:42:32 +02:00
Jacob Overgaard
c81e155154 add test for <umb-localize> 2023-07-27 11:40:51 +02:00
Jacob Overgaard
f940412026 add test to change language entirely 2023-07-27 11:40:42 +02:00
Jacob Overgaard
ee31030099 add support to reload the value if key changes 2023-07-27 11:40:26 +02:00
Jacob Overgaard
d594c8e7ea cancel any old subscription if the language changes 2023-07-27 11:39:43 +02:00
Jacob Overgaard
fde921155c add sleep test utility 2023-07-27 11:39:31 +02:00
Jacob Overgaard
273efeb476 add tests to localization context 2023-07-27 10:07:49 +02:00
Jacob Overgaard
c12bf6707c localization context should not listen for auth itself (makes it harder to test) 2023-07-27 10:07:39 +02:00
Jacob Overgaard
2b65a78f67 rename src/tsconfig to tsconfig.build 2023-07-27 10:07:10 +02:00
Jacob Overgaard
a7c6957e3c backoffice-element should react to user loggedin and set up localization context 2023-07-27 10:06:51 +02:00
Niels Lyngsø
b7d58ce75d implement for dashboards 2023-07-26 15:30:47 +02:00
Niels Lyngsø
638dad5b43 condition types 2023-07-26 14:35:54 +02:00
Niels Lyngsø
a1328b996e prettier 2023-07-26 14:35:43 +02:00
Niels Lyngsø
38f62f6316 type correction 2023-07-26 14:35:02 +02:00
Niels Lyngsø
9af9154346 clean up some unprovide typing 2023-07-26 14:34:29 +02:00
Jacob Overgaard
b60a88a8fd update imports 2023-07-26 11:12:39 +02:00
Jacob Overgaard
95a1824871 translation to your profile 2023-07-26 10:29:01 +02:00
Jacob Overgaard
353b6acb9f Merge remote-tracking branch 'origin/main' into feature/localization 2023-07-26 10:15:02 +02:00
Niels Lyngsø
de00b7a9f2 no need for the controller alias either 2023-07-26 09:11:55 +02:00
Niels Lyngsø
7e910d20b2 no need for this check 2023-07-26 09:11:36 +02:00
Niels Lyngsø
5fa60c472a Merge remote-tracking branch 'origin/main' into feature/extension-manager 2023-07-26 08:51:12 +02:00
Niels Lyngsø
2f74019fa1 lint fixing 2023-07-25 21:09:28 +02:00
Niels Lyngsø
68ae4e3176 move element controller back to its position. 2023-07-25 21:02:14 +02:00
Niels Lyngsø
097d19c921 out-commented unProvide code 2023-07-25 21:01:57 +02:00
Niels Lyngsø
580e072825 together with this impl. 2023-07-25 21:00:33 +02:00
Niels Lyngsø
bd59414d48 the important fix 2023-07-25 21:00:23 +02:00
Niels Lyngsø
a9bb731b29 fix type 2023-07-25 20:15:19 +02:00
Jacob Overgaard
abdbc2d918 rename translation section to Dictionary 2023-07-25 16:38:52 +02:00
Jacob Overgaard
99412a55f7 use localizeMany for buttons 2023-07-25 16:32:31 +02:00
Jacob Overgaard
b3328014e9 support listening on changed translations with localizeMany 2023-07-25 16:31:28 +02:00
Niels Lyngsø
18c98cdfe7 create new promise each time, to ensure the promise gets resolved with latest instance. 2023-07-25 16:18:44 +02:00
Niels Lyngsø
41ed29f35f clean up base controller on destroy 2023-07-25 16:12:05 +02:00