You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.
I know how to add translation like this in the html file: <h2 translate>SETUP.WELCOME</h2>
But how can I add a translation to a confirm popup or alert popup in my controller.js
var alertPopup = $ionicPopup.alert({
title: "Error", // how can I translate this line
template: "Something is going wrong, try again later" // how can I translate this line
});
alertPopup.then(function(res) {
console.log('ok is pressed');
});
Thanks!
The text was updated successfully, but these errors were encountered:
I know how to add translation like this in the html file:
<h2 translate>SETUP.WELCOME</h2>
But how can I add a translation to a confirm popup or alert popup in my controller.js
Thanks!
The text was updated successfully, but these errors were encountered: