diff --git a/src/components/mod_modal/tabs/reports_tab/report_card.vue b/src/components/mod_modal/tabs/reports_tab/report_card.vue index 6cc034b1..e77afa79 100644 --- a/src/components/mod_modal/tabs/reports_tab/report_card.vue +++ b/src/components/mod_modal/tabs/reports_tab/report_card.vue @@ -54,7 +54,7 @@ class="button button-unstyled dropdown-header" @click="toggleStatuses" > - {{ this.statuses.length + ' ' + $t('moderation.reports.statuses') }} + {{ $tc('moderation.reports.statuses', statuses.length - 1, { count: statuses.length }) }} - {{ this.notes.length + ' ' + $t('moderation.reports.notes') }} + {{ $tc('moderation.reports.notes', notes.length - 1, { count: notes.length }) }} ({ key: lang.code, value: lang.code, label: lang.name })) + const langs = this.$store.state.instance.supportedTranslationLanguages + if (langs && langs.source) { + return langs.source.map(lang => ({ key: lang.code, value: lang.code, label: lang.name })) + } + + return [] }, translationLanguage: { get: function () { return this.$store.getters.mergedConfig.translationLanguage }, diff --git a/src/i18n/en.json b/src/i18n/en.json index 144e94d3..83b8363c 100644 --- a/src/i18n/en.json +++ b/src/i18n/en.json @@ -283,13 +283,13 @@ "delete_note_title": "Confirm deletion", "no_content": "No description given", "note_placeholder": "Leave a note...", - "notes": "notes", + "notes": "{ count } note | { count } notes", "reopen": "Reopen", "report": "Report on", "reports": "Reports", "resolve": "Resolve", "show_closed": "Show closed", - "statuses": "statuses", + "statuses": "{ count } status | { count } statuses", "tag_policy_notice": "Enable the TagPolicy MRF to set post restrictions", "tags": "Set post restrictions" },