Skip to content

Commit

Permalink
Merge pull request #691 from nextcloud-libraries/fix/l10n-issue
Browse files Browse the repository at this point in the history
fix: Do not translate Exception error message
  • Loading branch information
susnux authored Jan 22, 2024
2 parents 4880ba8 + ae868a0 commit d609d0e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
3 changes: 0 additions & 3 deletions l10n/messages.pot
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ msgstr ""
msgid "Password"
msgstr ""

msgid "Password confirmation dialog already mounted"
msgstr ""

msgid "This action needs authentication"
msgstr ""

Expand Down
3 changes: 1 addition & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import Vue from 'vue'
import PasswordDialogVue from './components/PasswordDialog.vue'
import { DIALOG_ID, MODAL_CLASS } from './globals'
import { t } from './utils/l10n'

import type { ComponentInstance } from 'vue'

Expand Down Expand Up @@ -33,7 +32,7 @@ export const isPasswordConfirmationRequired = (): boolean => {
export const confirmPassword = (): Promise<void> => {
const isDialogMounted = Boolean(document.getElementById(DIALOG_ID))
if (isDialogMounted) {
return Promise.reject(new Error(t('Password confirmation dialog already mounted')))
return Promise.reject(new Error('Password confirmation dialog already mounted'))
}

if (!isPasswordConfirmationRequired()) {
Expand Down

0 comments on commit d609d0e

Please sign in to comment.