Open ewan-t opened 3 years ago
Thanks for reporting this @ewan-t.
It looks like bundle loader does not account for user additions to supported languages: https://github.com/okta/okta-signin-widget/blob/8a5ffa668ca41a60a64014b2f2e3e50ea63d0486/src/util/Bundles.js#L163
We will have this prioritized and fixed.
@ewan-t could you try tapping into the callback here - to see if it might help the problem you are solving?
@ewan-t could you try tapping into the callback here - to see if it might help the problem you are solving?
I run into the same issue where it will load a language listed as a Supported Language, but not one that is not on that list of 27 languages.
@ewan-t would you be able to share the error you are seeing when you tried the above?
@ewan-t Did you consider putting all translation texts into i18n.ja
in config instead of loading from files?
@ewan-t Did you consider putting all translation texts into
i18n.ja
in config instead of loading from files?
I have, but it's not ideal for performance reasons when you have to load 60+ different language translations on the one page. The CDN approach would be much cleaner and far more performant.
:information_source: If you have a question, please post it on the Okta Developer Forum instead. Issues in this repository are reserved for bug reports and feature requests.
I'm submitting a
Background info
Not able to load custom languages that are not listed as part of the 27 languages in the ReadMe here when leveraging the
assets.baseURL
config. eg. Arabic(Iso Code:ar
)Expected behavior
Load the Arabic language file from the custom CDN.
What went wrong?
SIW doesn't attempt to load the file when the language is not one of the 27 languages listed here.
Steps to reproduce
S3 bucket is set to public & it works if I use
ja
as the language with a custom language filelabels/json/login_ja.json
Your environment