double quotes don't work with pogen
This commit is contained in:
parent
3639c6db60
commit
f99e1522d1
@ -167,14 +167,14 @@ export function InstanceRoutes({
|
||||
if (error.type === ErrorType.TIMEOUT) {
|
||||
setGlobalNotification({
|
||||
message: i18n.str`The request to the backend take too long and was cancelled`,
|
||||
description: i18n.str`Diagnostic from ${error.info?.url} is "${error.message}"`,
|
||||
description: i18n.str`Diagnostic from ${error.info?.url} is '${error.message}'`,
|
||||
type: "ERROR",
|
||||
to,
|
||||
});
|
||||
} else {
|
||||
setGlobalNotification({
|
||||
message: i18n.str`The backend reported a problem: HTTP status #${error.status}`,
|
||||
description: i18n.str`Diagnostic from ${error.info?.url} is "${error.message}"`,
|
||||
description: i18n.str`Diagnostic from ${error.info?.url} is '${error.message}'`,
|
||||
details:
|
||||
error.clientError || error.serverError
|
||||
? error.error?.detail
|
||||
@ -586,12 +586,12 @@ function AdminInstanceUpdatePage({
|
||||
error.type === ErrorType.TIMEOUT
|
||||
? {
|
||||
message: i18n.str`The request to the backend take too long and was cancelled`,
|
||||
description: i18n.str`Diagnostic from ${error.info?.url} is "${error.message}"`,
|
||||
description: i18n.str`Diagnostic from ${error.info?.url} is '${error.message}'`,
|
||||
type: "ERROR" as const,
|
||||
}
|
||||
: {
|
||||
message: i18n.str`The backend reported a problem: HTTP status #${error.status}`,
|
||||
description: i18n.str`Diagnostic from ${error.info?.url} is "${error.message}"`,
|
||||
description: i18n.str`Diagnostic from ${error.info?.url} is '${error.message}'`,
|
||||
details:
|
||||
error.clientError || error.serverError
|
||||
? error.error?.detail
|
||||
|
@ -219,11 +219,21 @@ msgstr ""
|
||||
msgid "All"
|
||||
msgstr ""
|
||||
|
||||
#: src/paths/admin/list/index.tsx:89
|
||||
#, c-format
|
||||
msgid "Instance '%1$s' (ID: %2$s) has been deleted"
|
||||
msgstr ""
|
||||
|
||||
#: src/paths/admin/list/index.tsx:94
|
||||
#, c-format
|
||||
msgid "Failed to delete instance"
|
||||
msgstr ""
|
||||
|
||||
#: src/paths/admin/list/index.tsx:112
|
||||
#, c-format
|
||||
msgid "Instance '%1$s' (ID: %2$s) has been disabled"
|
||||
msgstr ""
|
||||
|
||||
#: src/paths/admin/list/index.tsx:117
|
||||
#, c-format
|
||||
msgid "Failed to purge instance"
|
||||
@ -1868,6 +1878,11 @@ msgstr ""
|
||||
msgid "could not update template"
|
||||
msgstr ""
|
||||
|
||||
#: src/paths/instance/webhooks/create/CreatePage.tsx:57
|
||||
#, c-format
|
||||
msgid "should be one of '%1$s'"
|
||||
msgstr ""
|
||||
|
||||
#: src/paths/instance/webhooks/create/CreatePage.tsx:85
|
||||
#, c-format
|
||||
msgid "Webhook ID to use"
|
||||
@ -2453,6 +2468,11 @@ msgstr ""
|
||||
msgid "The request to the backend take too long and was cancelled"
|
||||
msgstr ""
|
||||
|
||||
#: src/InstanceRoutes.tsx:170
|
||||
#, c-format
|
||||
msgid "Diagnostic from %1$s is '%2$s'"
|
||||
msgstr ""
|
||||
|
||||
#: src/InstanceRoutes.tsx:176
|
||||
#, c-format
|
||||
msgid "The backend reported a problem: HTTP status #%1$s"
|
||||
|
@ -219,11 +219,21 @@ msgstr ""
|
||||
msgid "All"
|
||||
msgstr ""
|
||||
|
||||
#: src/paths/admin/list/index.tsx:89
|
||||
#, c-format
|
||||
msgid "Instance '%1$s' (ID: %2$s) has been deleted"
|
||||
msgstr ""
|
||||
|
||||
#: src/paths/admin/list/index.tsx:94
|
||||
#, c-format
|
||||
msgid "Failed to delete instance"
|
||||
msgstr ""
|
||||
|
||||
#: src/paths/admin/list/index.tsx:112
|
||||
#, c-format
|
||||
msgid "Instance '%1$s' (ID: %2$s) has been disabled"
|
||||
msgstr ""
|
||||
|
||||
#: src/paths/admin/list/index.tsx:117
|
||||
#, c-format
|
||||
msgid "Failed to purge instance"
|
||||
@ -1868,6 +1878,11 @@ msgstr ""
|
||||
msgid "could not update template"
|
||||
msgstr ""
|
||||
|
||||
#: src/paths/instance/webhooks/create/CreatePage.tsx:57
|
||||
#, c-format
|
||||
msgid "should be one of '%1$s'"
|
||||
msgstr ""
|
||||
|
||||
#: src/paths/instance/webhooks/create/CreatePage.tsx:85
|
||||
#, c-format
|
||||
msgid "Webhook ID to use"
|
||||
@ -2453,6 +2468,11 @@ msgstr ""
|
||||
msgid "The request to the backend take too long and was cancelled"
|
||||
msgstr ""
|
||||
|
||||
#: src/InstanceRoutes.tsx:170
|
||||
#, c-format
|
||||
msgid "Diagnostic from %1$s is '%2$s'"
|
||||
msgstr ""
|
||||
|
||||
#: src/InstanceRoutes.tsx:176
|
||||
#, c-format
|
||||
msgid "The backend reported a problem: HTTP status #%1$s"
|
||||
|
@ -222,11 +222,21 @@ msgstr "Sin instancia default"
|
||||
msgid "All"
|
||||
msgstr "Todo"
|
||||
|
||||
#: src/paths/admin/list/index.tsx:89
|
||||
#, c-format
|
||||
msgid "Instance '%1$s' (ID: %2$s) has been deleted"
|
||||
msgstr ""
|
||||
|
||||
#: src/paths/admin/list/index.tsx:94
|
||||
#, fuzzy, c-format
|
||||
msgid "Failed to delete instance"
|
||||
msgstr "Sin instancia default"
|
||||
|
||||
#: src/paths/admin/list/index.tsx:112
|
||||
#, c-format
|
||||
msgid "Instance '%1$s' (ID: %2$s) has been disabled"
|
||||
msgstr ""
|
||||
|
||||
#: src/paths/admin/list/index.tsx:117
|
||||
#, fuzzy, c-format
|
||||
msgid "Failed to purge instance"
|
||||
@ -1873,6 +1883,11 @@ msgstr "no se pudo eliminar el producto"
|
||||
msgid "could not update template"
|
||||
msgstr "no se pudo actualizar el producto"
|
||||
|
||||
#: src/paths/instance/webhooks/create/CreatePage.tsx:57
|
||||
#, fuzzy, c-format
|
||||
msgid "should be one of '%1$s'"
|
||||
msgstr "deberían ser iguales"
|
||||
|
||||
#: src/paths/instance/webhooks/create/CreatePage.tsx:85
|
||||
#, c-format
|
||||
msgid "Webhook ID to use"
|
||||
@ -2459,6 +2474,11 @@ msgstr "Acceso denegado"
|
||||
msgid "The request to the backend take too long and was cancelled"
|
||||
msgstr ""
|
||||
|
||||
#: src/InstanceRoutes.tsx:170
|
||||
#, c-format
|
||||
msgid "Diagnostic from %1$s is '%2$s'"
|
||||
msgstr ""
|
||||
|
||||
#: src/InstanceRoutes.tsx:176
|
||||
#, fuzzy, c-format
|
||||
msgid "The backend reported a problem: HTTP status #%1$s"
|
||||
|
@ -219,11 +219,21 @@ msgstr ""
|
||||
msgid "All"
|
||||
msgstr ""
|
||||
|
||||
#: src/paths/admin/list/index.tsx:89
|
||||
#, c-format
|
||||
msgid "Instance '%1$s' (ID: %2$s) has been deleted"
|
||||
msgstr ""
|
||||
|
||||
#: src/paths/admin/list/index.tsx:94
|
||||
#, c-format
|
||||
msgid "Failed to delete instance"
|
||||
msgstr ""
|
||||
|
||||
#: src/paths/admin/list/index.tsx:112
|
||||
#, c-format
|
||||
msgid "Instance '%1$s' (ID: %2$s) has been disabled"
|
||||
msgstr ""
|
||||
|
||||
#: src/paths/admin/list/index.tsx:117
|
||||
#, c-format
|
||||
msgid "Failed to purge instance"
|
||||
@ -1868,6 +1878,11 @@ msgstr ""
|
||||
msgid "could not update template"
|
||||
msgstr ""
|
||||
|
||||
#: src/paths/instance/webhooks/create/CreatePage.tsx:57
|
||||
#, c-format
|
||||
msgid "should be one of '%1$s'"
|
||||
msgstr ""
|
||||
|
||||
#: src/paths/instance/webhooks/create/CreatePage.tsx:85
|
||||
#, c-format
|
||||
msgid "Webhook ID to use"
|
||||
@ -2453,6 +2468,11 @@ msgstr ""
|
||||
msgid "The request to the backend take too long and was cancelled"
|
||||
msgstr ""
|
||||
|
||||
#: src/InstanceRoutes.tsx:170
|
||||
#, c-format
|
||||
msgid "Diagnostic from %1$s is '%2$s'"
|
||||
msgstr ""
|
||||
|
||||
#: src/InstanceRoutes.tsx:176
|
||||
#, c-format
|
||||
msgid "The backend reported a problem: HTTP status #%1$s"
|
||||
|
@ -219,11 +219,21 @@ msgstr ""
|
||||
msgid "All"
|
||||
msgstr ""
|
||||
|
||||
#: src/paths/admin/list/index.tsx:89
|
||||
#, c-format
|
||||
msgid "Instance '%1$s' (ID: %2$s) has been deleted"
|
||||
msgstr ""
|
||||
|
||||
#: src/paths/admin/list/index.tsx:94
|
||||
#, c-format
|
||||
msgid "Failed to delete instance"
|
||||
msgstr ""
|
||||
|
||||
#: src/paths/admin/list/index.tsx:112
|
||||
#, c-format
|
||||
msgid "Instance '%1$s' (ID: %2$s) has been disabled"
|
||||
msgstr ""
|
||||
|
||||
#: src/paths/admin/list/index.tsx:117
|
||||
#, c-format
|
||||
msgid "Failed to purge instance"
|
||||
@ -1868,6 +1878,11 @@ msgstr ""
|
||||
msgid "could not update template"
|
||||
msgstr ""
|
||||
|
||||
#: src/paths/instance/webhooks/create/CreatePage.tsx:57
|
||||
#, c-format
|
||||
msgid "should be one of '%1$s'"
|
||||
msgstr ""
|
||||
|
||||
#: src/paths/instance/webhooks/create/CreatePage.tsx:85
|
||||
#, c-format
|
||||
msgid "Webhook ID to use"
|
||||
@ -2453,6 +2468,11 @@ msgstr ""
|
||||
msgid "The request to the backend take too long and was cancelled"
|
||||
msgstr ""
|
||||
|
||||
#: src/InstanceRoutes.tsx:170
|
||||
#, c-format
|
||||
msgid "Diagnostic from %1$s is '%2$s'"
|
||||
msgstr ""
|
||||
|
||||
#: src/InstanceRoutes.tsx:176
|
||||
#, c-format
|
||||
msgid "The backend reported a problem: HTTP status #%1$s"
|
||||
|
@ -219,11 +219,21 @@ msgstr ""
|
||||
msgid "All"
|
||||
msgstr ""
|
||||
|
||||
#: src/paths/admin/list/index.tsx:89
|
||||
#, c-format
|
||||
msgid "Instance '%1$s' (ID: %2$s) has been deleted"
|
||||
msgstr ""
|
||||
|
||||
#: src/paths/admin/list/index.tsx:94
|
||||
#, c-format
|
||||
msgid "Failed to delete instance"
|
||||
msgstr ""
|
||||
|
||||
#: src/paths/admin/list/index.tsx:112
|
||||
#, c-format
|
||||
msgid "Instance '%1$s' (ID: %2$s) has been disabled"
|
||||
msgstr ""
|
||||
|
||||
#: src/paths/admin/list/index.tsx:117
|
||||
#, c-format
|
||||
msgid "Failed to purge instance"
|
||||
@ -1868,6 +1878,11 @@ msgstr ""
|
||||
msgid "could not update template"
|
||||
msgstr ""
|
||||
|
||||
#: src/paths/instance/webhooks/create/CreatePage.tsx:57
|
||||
#, c-format
|
||||
msgid "should be one of '%1$s'"
|
||||
msgstr ""
|
||||
|
||||
#: src/paths/instance/webhooks/create/CreatePage.tsx:85
|
||||
#, c-format
|
||||
msgid "Webhook ID to use"
|
||||
@ -2453,6 +2468,11 @@ msgstr ""
|
||||
msgid "The request to the backend take too long and was cancelled"
|
||||
msgstr ""
|
||||
|
||||
#: src/InstanceRoutes.tsx:170
|
||||
#, c-format
|
||||
msgid "Diagnostic from %1$s is '%2$s'"
|
||||
msgstr ""
|
||||
|
||||
#: src/InstanceRoutes.tsx:176
|
||||
#, c-format
|
||||
msgid "The backend reported a problem: HTTP status #%1$s"
|
||||
|
@ -215,12 +215,21 @@ msgstr ""
|
||||
msgid "All"
|
||||
msgstr ""
|
||||
|
||||
#: src/paths/admin/list/index.tsx:89
|
||||
#, c-format
|
||||
msgid "Instance '%1$s' (ID: %2$s) has been deleted"
|
||||
msgstr ""
|
||||
|
||||
#: src/paths/admin/list/index.tsx:94
|
||||
#, c-format
|
||||
msgid "Failed to delete instance"
|
||||
msgstr ""
|
||||
|
||||
#: src/paths/admin/list/index.tsx:112
|
||||
#, c-format
|
||||
msgid "Instance '%1$s' (ID: %2$s) has been disabled"
|
||||
msgstr ""
|
||||
|
||||
#: src/paths/admin/list/index.tsx:117
|
||||
#, c-format
|
||||
msgid "Failed to purge instance"
|
||||
@ -1857,6 +1866,11 @@ msgstr ""
|
||||
msgid "could not update template"
|
||||
msgstr ""
|
||||
|
||||
#: src/paths/instance/webhooks/create/CreatePage.tsx:57
|
||||
#, c-format
|
||||
msgid "should be one of '%1$s'"
|
||||
msgstr ""
|
||||
|
||||
#: src/paths/instance/webhooks/create/CreatePage.tsx:85
|
||||
#, c-format
|
||||
msgid "Webhook ID to use"
|
||||
@ -2438,6 +2452,11 @@ msgstr ""
|
||||
msgid "The request to the backend take too long and was cancelled"
|
||||
msgstr ""
|
||||
|
||||
#: src/InstanceRoutes.tsx:170
|
||||
#, c-format
|
||||
msgid "Diagnostic from %1$s is '%2$s'"
|
||||
msgstr ""
|
||||
|
||||
#: src/InstanceRoutes.tsx:176
|
||||
#, c-format
|
||||
msgid "The backend reported a problem: HTTP status #%1$s"
|
||||
|
@ -86,7 +86,7 @@ export default function Instances({
|
||||
await deleteInstance(deleting.id);
|
||||
// pushNotification({ message: 'delete_success', type: 'SUCCESS' })
|
||||
setNotif({
|
||||
message: i18n.str`Instance "${deleting.name}" (ID: ${deleting.id}) has been deleted`,
|
||||
message: i18n.str`Instance '${deleting.name}' (ID: ${deleting.id}) has been deleted`,
|
||||
type: "SUCCESS",
|
||||
});
|
||||
} catch (error) {
|
||||
@ -109,7 +109,7 @@ export default function Instances({
|
||||
try {
|
||||
await purgeInstance(purging.id);
|
||||
setNotif({
|
||||
message: i18n.str`Instance "${purging.name}" (ID: ${purging.id}) has been disabled`,
|
||||
message: i18n.str`Instance '${purging.name}' (ID: ${purging.id}) has been disabled`,
|
||||
type: "SUCCESS",
|
||||
});
|
||||
} catch (error) {
|
||||
|
@ -54,7 +54,7 @@ export function CreatePage({ onCreate, onBack }: Props): VNode {
|
||||
http_method: !state.http_method
|
||||
? i18n.str`required`
|
||||
: !validMethod.includes(state.http_method)
|
||||
? i18n.str`should be one of "${validMethod.join(", ")}"`
|
||||
? i18n.str`should be one of '${validMethod.join(", ")}'`
|
||||
: undefined,
|
||||
url: !state.url ? i18n.str`required` : undefined,
|
||||
};
|
||||
|
@ -50,7 +50,7 @@ export function UpdatePage({ webhook, onUpdate, onBack }: Props): VNode {
|
||||
http_method: !state.http_method
|
||||
? i18n.str`required`
|
||||
: !validMethod.includes(state.http_method)
|
||||
? i18n.str`should be one of "${validMethod.join(", ")}"`
|
||||
? i18n.str`should be one of '${validMethod.join(", ")}'`
|
||||
: undefined,
|
||||
url: !state.url ? i18n.str`required` : undefined,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user