mirror of
https://framagit.org/les/gancio.git
synced 2025-01-31 16:42:22 +01:00
parent
d9be784500
commit
4a5e5617ee
3 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue