logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe
commit: 74b513122e8dc6768ceb267947cb5a2f206ce7bd
parent: 7516cd859f0c9bc078548f801cbb6a63b72ced97
Author: Roger Braun <rbraun@Bobble.local>
Date:   Tue,  7 Nov 2017 15:23:00 +0100

Set locale from browser settings.

Diffstat:

Msrc/main.js4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/main.js b/src/main.js @@ -83,8 +83,10 @@ const router = new VueRouter({ } }) +const currentLocale = (window.navigator.language || 'en').split('-')[0] + const i18n = new VueI18n({ - locale: 'en', + locale: currentLocale, fallbackLocale: 'en', messages })