0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00
ghost/core/server/lib
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
..
common Moved theme i18n into theme service + refactor (#11674) 2020-03-19 14:07:20 +00:00
fs 🐛 Fixed "undefined" values in member csv export 2020-02-12 11:03:16 +05:30
image Migrated to use url-utils from Ghost-SDK (#10787) 2019-06-18 15:13:55 +02:00
mobiledoc Fixed typo 2020-03-19 13:58:13 +00:00
promise Extended sequence utility 2018-10-03 00:17:45 +02:00
security Updated to use slugify method from SDK for safe string 2019-05-07 15:33:07 +05:30
url-utils Merge branch 'master' into v3 2019-10-08 13:58:08 +01:00
constants.js Moved utils constants to lib/constants 2017-12-14 14:13:40 +01:00
ghost-version.js Switched to eslint-plugin-ghost (#9835) 2018-09-17 20:49:30 +02:00
request.js Set Ghost user-agent header for got requests (#10424) 2019-01-28 17:01:34 +01:00