mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-10-07 13:12:02 +00:00
Added the brazilian language
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
const Cache = ('./cache');
|
||||
const messages = require('../i18n/messages.json');
|
||||
|
||||
/**
|
||||
@@ -7,7 +6,7 @@ const messages = require('../i18n/messages.json');
|
||||
* @param {Object} [data]
|
||||
*/
|
||||
module.exports = function (namespace, key, data) {
|
||||
let locale = Cache.locale;
|
||||
let locale = navigator.language; //get location by navigator
|
||||
// check that the locale exists
|
||||
if (typeof messages[locale] === 'undefined') {
|
||||
locale = 'en';
|
||||
|
Reference in New Issue
Block a user