diff --git a/extensions/akismet/js/admin/dist/extension.js b/extensions/akismet/js/admin/dist/extension.js index 647eed070..eb40cec67 100644 --- a/extensions/akismet/js/admin/dist/extension.js +++ b/extensions/akismet/js/admin/dist/extension.js @@ -23,7 +23,7 @@ System.register('flarum/akismet/components/AkismetSettingsModal', ['flarum/compo }, { key: 'title', value: function title() { - return 'Akismet Settings'; + return app.translator.trans('flarum-akismet.admin.akismet_settings.title'); } }, { key: 'form', @@ -34,7 +34,7 @@ System.register('flarum/akismet/components/AkismetSettingsModal', ['flarum/compo m( 'label', null, - 'API Key' + app.translator.trans('flarum-akismet.admin.akismet_settings.api_key_label') ), m('input', { className: 'FormControl', bidi: this.setting('flarum-akismet.api_key') }) )]; diff --git a/extensions/akismet/js/forum/dist/extension.js b/extensions/akismet/js/forum/dist/extension.js index 2c73c7e1e..e543ee4ae 100644 --- a/extensions/akismet/js/forum/dist/extension.js +++ b/extensions/akismet/js/forum/dist/extension.js @@ -23,14 +23,14 @@ System.register('flarum/akismet/main', ['flarum/extend', 'flarum/app', 'flarum/u if (flags && flags.some(function (flag) { return flag.type() === 'akismet'; })) { - items.get('approve').props.children = 'Not Spam'; + items.get('approve').props.children = app.translator.trans('flarum-akismet.forum.post.not_spam_button'); } } }); override(CommentPost.prototype, 'flagReason', function (original, flag) { if (flag.type() === 'akismet') { - return 'Akismet flagged as Spam'; + return app.translator.trans('flarum-akismet.forum.post.akismet_flagged_text'); } return original(flag);