diff --git a/CHANGELOG b/CHANGELOG index 663b8877..e741e3ef 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,9 @@ All notable changes to this project will be documented in this file. +### unreleased +[locale] add catalan +[fix] fedi outbox + ### 0.17.12 - [ui] add admin section on event page in mobile #63 - [fix] remove username from users diff --git a/plugins/element-ui.js b/plugins/element-ui.js index 45486dca..182e6815 100644 --- a/plugins/element-ui.js +++ b/plugins/element-ui.js @@ -9,7 +9,7 @@ import locale from 'element-ui/lib/locale' const locales = { it: require('element-ui/lib/locale/lang/it'), en: require('element-ui/lib/locale/lang/en'), - es: require('element-ui/lib/locale/lang/es') + es: require('element-ui/lib/locale/lang/es'), ca: require('element-ui/lib/locale/lang/ca') } diff --git a/server/helpers.js b/server/helpers.js index 82c57d54..e1ceb8d7 100644 --- a/server/helpers.js +++ b/server/helpers.js @@ -34,7 +34,7 @@ module.exports = { // set locale and user locale const acceptedLanguages = req.headers['accept-language'] - const supportedLanguages = ['en', 'it', 'es'] + const supportedLanguages = ['en', 'it', 'es', 'ca'] acceptLanguage.languages(supportedLanguages) req.settings.locale = acceptLanguage.get(acceptedLanguages) req.settings.user_locale = settingsController.user_locale[req.settings.locale]