Skip to content

Commit

Permalink
Now forces language variable to be lower-case
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryzzzen committed Aug 17, 2018
1 parent 001bec5 commit 2a1702d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion objects/i18n/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const app = require('electron').app ? require('electron').app : require('electron').remote.app;
const fs = require('fs'), path = require('path');
let language, locale = app.getLocale() || 'en';
let language, locale = app.getLocale().toLowerCase() || 'en';

function i18n() {
this._locale = locale;
Expand Down

0 comments on commit 2a1702d

Please sign in to comment.