Commit 4a5e5617 authored by les's avatar les
Browse files

[locale] add catalan

!2
parent d9be7845
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
......
......@@ -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')
}
......
......@@ -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]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment