@@ -3,17 +3,17 @@ import { action } from "@ember/object";
3
3
import { classNames } from "@ember-decorators/component" ;
4
4
import { ajax } from "discourse/lib/ajax" ;
5
5
import { popupAjaxError } from "discourse/lib/ajax-error" ;
6
- import { i18n , propertyNotEqual } from "discourse/lib/computed" ;
7
- import I18n from "I18n " ;
6
+ import { i18n as computedI18n , propertyNotEqual } from "discourse/lib/computed" ;
7
+ import { i18n } from "discourse-i18n " ;
8
8
9
9
@classNames ( "house-ads-setting" )
10
10
export default class HouseAdsSetting extends Component {
11
11
adValue = "" ;
12
12
saving = false ;
13
13
savingStatus = "" ;
14
14
15
- @i18n ( "name" , "admin.adplugin.house_ads.%@.title" ) title ;
16
- @i18n ( "name" , "admin.adplugin.house_ads.%@.description" ) help ;
15
+ @computedI18n ( "name" , "admin.adplugin.house_ads.%@.title" ) title ;
16
+ @computedI18n ( "name" , "admin.adplugin.house_ads.%@.description" ) help ;
17
17
@propertyNotEqual ( "adValue" , "value" ) changed ;
18
18
19
19
init ( ) {
@@ -26,7 +26,7 @@ export default class HouseAdsSetting extends Component {
26
26
if ( ! this . get ( "saving" ) ) {
27
27
this . setProperties ( {
28
28
saving : true ,
29
- savingStatus : I18n . t ( "saving" ) ,
29
+ savingStatus : i18n ( "saving" ) ,
30
30
} ) ;
31
31
32
32
ajax ( `/admin/plugins/pluginad/house_settings/${ this . get ( "name" ) } .json` , {
@@ -38,7 +38,7 @@ export default class HouseAdsSetting extends Component {
38
38
adSettings . set ( this . get ( "name" ) , this . get ( "adValue" ) ) ;
39
39
this . setProperties ( {
40
40
value : this . get ( "adValue" ) ,
41
- savingStatus : I18n . t ( "saved" ) ,
41
+ savingStatus : i18n ( "saved" ) ,
42
42
} ) ;
43
43
} )
44
44
. catch ( popupAjaxError )
0 commit comments