Skip to content

Commit 137cf32

Browse files
committed
Use _t as _t
Rather than through a languageHandler object. This way our translation script knows about it.
1 parent e5c128f commit 137cf32

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎src/vector/index.js‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ import Promise from 'bluebird';
6969
var request = require('browser-request');
7070
import * as UserSettingsStore from 'matrix-react-sdk/lib/UserSettingsStore';
7171
import * as languageHandler from 'matrix-react-sdk/lib/languageHandler';
72+
import { _t } from 'matrix-react-sdk/lib/languageHandler';
7273

7374
import url from 'url';
7475

@@ -248,13 +249,13 @@ async function loadApp() {
248249

249250
if (!preventRedirect) {
250251
if (/iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream) {
251-
if (confirm(languageHandler._t("Riot is not supported on mobile web. Install the app?"))) {
252+
if (confirm(_t("Riot is not supported on mobile web. Install the app?"))) {
252253
window.location = "https://itunes.apple.com/us/app/vector.im/id1083446067";
253254
return;
254255
}
255256
}
256257
else if (/Android/.test(navigator.userAgent)) {
257-
if (confirm(languageHandler._t("Riot is not supported on mobile web. Install the app?"))) {
258+
if (confirm(_t("Riot is not supported on mobile web. Install the app?"))) {
258259
window.location = "https://play.google.com/store/apps/details?id=im.vector.alpha";
259260
return;
260261
}

0 commit comments

Comments
 (0)