Ghost/core/server/lib/common
Hannah Wolfe 5e2c62e328
Moved theme i18n into theme service + refactor (#11674)
- The existing common.i18n library contained code for core and theme translations
- There is some shared logic and some theme-specific logic, and the theme-specific logic has dependencies we don't want in lib/common
- This refactor introduces an I18n base class that does all the main shared logic, with no dependencies on other parts of the codebase
- ThemeI18n then extends this logic, and replaces the functions it needs to handle differently and adds it's dependencies on config and settingsCache
- The class has several methods broken down into smaller pieces to make it easier to extend only the necessary parts
- The class also encapsulates all of its logic, without external functions or variables
- The function loadThemeTranslations becomes the 'init()' function overridden in themeI18n.
2020-03-19 14:07:20 +00:00
..
errors.js 🏗Added host config limits for member emails (#11439) 2019-12-17 19:24:27 +05:30
events.js ES6 migration: server/lib/common (#9779) 2018-09-10 14:39:50 +02:00
i18n.js Moved theme i18n into theme service + refactor (#11674) 2020-03-19 14:07:20 +00:00
index.js 🔥 Drop Node v4 Support 2018-05-01 14:06:18 +02:00
logging.js Exposed new logging config options (#10678) 2019-04-16 16:34:15 +05:30