mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 04:14:21 +08:00
chore(translate): add deprecation notice
Please use NG2-Translate instead: http://ionicframework.com/docs/v2/resources/ng2-translate/
This commit is contained in:

committed by
Adam Bradley

parent
144ffe3b03
commit
96d630e42a
@ -37,6 +37,7 @@ export class Translate {
|
|||||||
|
|
||||||
setLanguage(lang: any) {
|
setLanguage(lang: any) {
|
||||||
this._language = lang;
|
this._language = lang;
|
||||||
|
console.warn('Translate provider and TranslatePipe has been deprecated and will be removed in the next version. Please use NG2-Translate instead: http://ionicframework.com/docs/v2/resources/ng2-translate/');
|
||||||
}
|
}
|
||||||
|
|
||||||
getTranslations(lang: any) {
|
getTranslations(lang: any) {
|
||||||
|
Reference in New Issue
Block a user