Ghost/core/shared/i18n
Hannah Wolfe 01d9701096 Fixed i18n being called outside of a function
- calling i18n as a global const like this requires it to be loaded before anything else, when we have to manage this with the init() flow
- wrapping it inside the function where it's used ensures we don't call i18n til we need it
- also improved the i18n called without init error to include the key it was called with
2021-05-05 16:34:40 +01:00
..
translations Refactored i18n into a class + index 2021-05-05 15:13:23 +01:00
i18n.js Fixed i18n being called outside of a function 2021-05-05 16:34:40 +01:00
index.js Refactored i18n into a class + index 2021-05-05 15:13:23 +01:00