2023-02-13 18:53:15 +08:00
|
|
|
import SiteSettingComponent from "./site-setting";
|
2019-10-31 04:28:29 +08:00
|
|
|
import { alias } from "@ember/object/computed";
|
2018-03-05 08:04:23 +08:00
|
|
|
|
2023-02-13 18:53:15 +08:00
|
|
|
export default class ThemeTranslation extends SiteSettingComponent {
|
|
|
|
@alias("translation") setting;
|
|
|
|
@alias("translation.key") settingName;
|
2019-01-17 19:46:11 +08:00
|
|
|
|
2023-02-23 23:32:53 +08:00
|
|
|
type = "string";
|
|
|
|
|
2018-03-05 08:04:23 +08:00
|
|
|
_save() {
|
2019-05-27 16:15:39 +08:00
|
|
|
return this.model.saveTranslation(
|
2019-01-17 19:46:11 +08:00
|
|
|
this.get("translation.key"),
|
2018-03-05 08:04:23 +08:00
|
|
|
this.get("buffered.value")
|
|
|
|
);
|
2023-02-13 18:53:15 +08:00
|
|
|
}
|
|
|
|
}
|