Skip to content

Commit 8e499d7

Browse files
authored
Merge pull request #50366 from nextcloud/fix/50363/correct-system-tags-i18n
fix(systemtags): Use literal strings for i18n in showSuccess
2 parents 53e6eee + 72cb01d commit 8e499d7

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

apps/systemtags/src/components/SystemTagsCreationControl.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@ export default {
6464
handleResponse({ isRestricted, status, errorMessage, error }) {
6565
if (status === 'ok') {
6666
this.systemTagsCreationRestrictedToAdmin = isRestricted
67-
showSuccess(t('settings', `System tag creation is now ${isRestricted ? 'restricted to administrators' : 'allowed for everybody'}`))
67+
showSuccess(isRestricted
68+
? t('settings', 'System tag creation is now restricted to administrators')
69+
: t('settings', 'System tag creation is now allowed for everybody'),
70+
)
6871
return
6972
}
7073

0 commit comments

Comments
 (0)