FIX: Missing translations for empty config area (#29966)

This commit is contained in:
Penar Musaraj 2024-11-27 15:49:58 -05:00 committed by GitHub
parent 6acf673f8d
commit ccc8e37dde
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 6 additions and 9 deletions

View File

@ -91,7 +91,7 @@ export default class AdminConfigAreasEmojisList extends Component {
@ctaLabel="admin.emoji.add"
@ctaRoute="adminEmojis.new"
@ctaClass="admin-emojis__add-emoji"
@emptyLabel="admin.emoji.no_emoji"
@emptyLabel={{i18n "admin.emoji.no_emoji"}}
/>
{{/if}}
</template>

View File

@ -97,7 +97,7 @@ export default class AdminConfigAreasUserFieldsList extends Component {
@ctaLabel="admin.user_fields.add"
@ctaRoute="adminUserFields.new"
@ctaClass="admin-user_fields__add-emoji"
@emptyLabel="admin.user_fields.no_user_fields"
@emptyLabel={{i18n "admin.user_fields.no_user_fields"}}
/>
{{/if}}
</div>

View File

@ -2,7 +2,6 @@ import Component from "@glimmer/component";
import { tracked } from "@glimmer/tracking";
import didInsert from "@ember/render-modifiers/modifiers/did-insert";
import { service } from "@ember/service";
import { htmlSafe } from "@ember/template";
import ConditionalLoadingSpinner from "discourse/components/conditional-loading-spinner";
import { ajax } from "discourse/lib/ajax";
import { popupAjaxError } from "discourse/lib/ajax-error";
@ -73,11 +72,9 @@ export default class DashboardNewFeatures extends Component {
</AdminConfigAreaCard>
{{else}}
<AdminConfigAreaEmptyList
@emptyLabel={{htmlSafe
(i18n
"admin.dashboard.new_features.previous_announcements"
url="https://meta.discourse.org/tags/c/announcements/67/release-notes"
)
@emptyLabel={{i18n
"admin.dashboard.new_features.previous_announcements"
url="https://meta.discourse.org/tags/c/announcements/67/release-notes"
}}
/>
{{/each}}

View File

@ -127,7 +127,7 @@
@ctaLabel="admin.permalink.add"
@ctaRoute="adminPermalinks.new"
@ctaClass="admin-permalinks__add-permalink"
@emptyLabel="admin.permalink.no_permalinks"
@emptyLabel={{i18n "admin.permalink.no_permalinks"}}
/>
{{/if}}
{{/if}}