mirror of
https://github.com/element-hq/element-web
synced 2024-11-29 12:58:53 +03:00
Use _t as _t
Rather than through a languageHandler object. This way our translation script knows about it.
This commit is contained in:
parent
e5c128fcb8
commit
137cf32d3b
1 changed files with 3 additions and 2 deletions
|
@ -69,6 +69,7 @@ import Promise from 'bluebird';
|
|||
var request = require('browser-request');
|
||||
import * as UserSettingsStore from 'matrix-react-sdk/lib/UserSettingsStore';
|
||||
import * as languageHandler from 'matrix-react-sdk/lib/languageHandler';
|
||||
import { _t } from 'matrix-react-sdk/lib/languageHandler';
|
||||
|
||||
import url from 'url';
|
||||
|
||||
|
@ -248,13 +249,13 @@ async function loadApp() {
|
|||
|
||||
if (!preventRedirect) {
|
||||
if (/iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream) {
|
||||
if (confirm(languageHandler._t("Riot is not supported on mobile web. Install the app?"))) {
|
||||
if (confirm(_t("Riot is not supported on mobile web. Install the app?"))) {
|
||||
window.location = "https://itunes.apple.com/us/app/vector.im/id1083446067";
|
||||
return;
|
||||
}
|
||||
}
|
||||
else if (/Android/.test(navigator.userAgent)) {
|
||||
if (confirm(languageHandler._t("Riot is not supported on mobile web. Install the app?"))) {
|
||||
if (confirm(_t("Riot is not supported on mobile web. Install the app?"))) {
|
||||
window.location = "https://play.google.com/store/apps/details?id=im.vector.alpha";
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue