Skip to content

Commit

Permalink
[translations] fixed default lang bug
Browse files Browse the repository at this point in the history
  • Loading branch information
MTRNord committed Apr 5, 2017
1 parent d66d6f7 commit da5fc08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/components/structures/MatrixChat.js
Original file line number Diff line number Diff line change
Expand Up @@ -766,6 +766,8 @@ module.exports = React.createClass({
counterpart.registerTranslations('de', require('../../i18n/global/de-de'));
counterpart.setFallbackLocale('en');

console.log("got event");

if (!language){
var language = navigator.language || navigator.userLanguage;
counterpart.setLocale(language);
Expand Down
2 changes: 0 additions & 2 deletions src/components/structures/UserSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ var AddThreepid = require('../../AddThreepid');
var SdkConfig = require('../../SdkConfig');
import AccessibleButton from '../views/elements/AccessibleButton';

var counterpart = require('counterpart');

// if this looks like a release, use the 'version' from package.json; else use
// the git sha.
const REACT_SDK_VERSION =
Expand Down

0 comments on commit da5fc08

Please sign in to comment.