Skip to content

A platform for community discussion. Free, open, simple.

FIX: Removal of i18nPrefix deprecations

Robin Ward70771e02bb5e
diff --git a/app/assets/javascripts/select-kit/addon/components/category-notifications-button.js b/app/assets/javascripts/select-kit/addon/components/category-notifications-button.js
index b9e959f7b5b..e9b6e586539 100644
--- a/app/assets/javascripts/select-kit/addon/components/category-notifications-button.js
+++ b/app/assets/javascripts/select-kit/addon/components/category-notifications-button.js
@@ -7,9 +7,7 @@ export default NotificationOptionsComponent.extend({
isHidden: or("category.deleted"),
selectKitOptions: {
- i18nPrefix: "i18nPrefix",
+ i18nPrefix: "category.notifications",
showFullTitle: false
- },
-
- i18nPrefix: "category.notifications"
+ }
});
diff --git a/app/assets/javascripts/select-kit/addon/components/group-notifications-button.js b/app/assets/javascripts/select-kit/addon/components/group-notifications-button.js
index 7e137afc950..88b7f42938c 100644
--- a/app/assets/javascripts/select-kit/addon/components/group-notifications-button.js
+++ b/app/assets/javascripts/select-kit/addon/components/group-notifications-button.js
@@ -5,8 +5,6 @@ export default NotificationOptionsComponent.extend({
classNames: ["group-notifications-button"],
selectKitOptions: {
- i18nPrefix: "i18nPrefix"
- },
-
- i18nPrefix: "groups.notifications"
+ i18nPrefix: "groups.notifications"
+ }
});
diff --git a/app/assets/javascripts/select-kit/addon/components/tag-notifications-button.js b/app/assets/javascripts/select-kit/addon/components/tag-notifications-button.js
index 67f961fbe36..46f2086b8f8 100644
--- a/app/assets/javascripts/select-kit/addon/components/tag-notifications-button.js
+++ b/app/assets/javascripts/select-kit/addon/components/tag-notifications-button.js
@@ -6,8 +6,6 @@ export default NotificationsButtonComponent.extend({
selectKitOptions: {
showFullTitle: false,
- i18nPrefix: "i18nPrefix"
- },
-
- i18nPrefix: "tagging.notifications"
+ i18nPrefix: "tagging.notifications"
+ }
});
diff --git a/app/assets/javascripts/select-kit/addon/components/topic-notifications-options.js b/app/assets/javascripts/select-kit/addon/components/topic-notifications-options.js
index 5548eb27417..50b8f1f5c7f 100644
--- a/app/assets/javascripts/select-kit/addon/components/topic-notifications-options.js
+++ b/app/assets/javascripts/select-kit/addon/components/topic-notifications-options.js
@@ -8,7 +8,7 @@ export default NotificationsButtonComponent.extend({
content: topicLevels,
selectKitOptions: {
- i18nPrefix: "i18nPrefix",
+ i18nPrefix: "topic.notifications",
i18nPostfix: "i18nPostfix",
showCaret: true
},