0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/server
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
..
adapters Handled permissions error in file storage adapter 2020-03-11 13:27:27 +00:00
api Moved htmlToMobiledocConverter() out of renderers 2020-03-19 12:18:54 +00:00
config 🐛 Fixed csv file uploads on Windows w/Excel installed 2019-11-26 15:11:05 +00:00
data Renamed mobiledoc converters to renderers 2020-03-18 18:13:25 +00:00
lib Moved theme i18n into theme service + refactor (#11674) 2020-03-19 14:07:20 +00:00
models Renamed mobiledoc converters to renderers 2020-03-18 18:13:25 +00:00
public Added minified members.js file handling 2020-02-26 14:08:10 +08:00
services 🐛 Fixed missing publication icon in newsletter emails 2020-03-12 09:52:54 +05:30
translations Added labels for Members (#11538) 2020-02-14 15:03:10 +05:30
views
web Implemented externally verifiable identity tokens 2020-03-16 13:22:04 +01:00
analytics-events.js
ghost-server.js
index.js Merge branch 'master' into mega 2019-11-18 11:09:46 +00:00
overrides.js
sentry.js Added captureException helper to Sentry integration 2020-03-04 13:42:30 +00:00
update-check.js Added site URL to Update Check body 2020-03-09 09:48:04 +00:00