Skip to content

Commit cd649b1

Browse files
committed
Add translation for scope attribute errors
1 parent 9e9f78e commit cd649b1

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

config/locales/en.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,10 @@ en:
238238
invalid_url: '%{field} must be a valid URL, got "%{value}".'
239239
password_parameter_type_deprecated: 'Password parameter type can no longer
240240
be used. Use Secure settings instead. Learn more: %{link}.'
241+
scope_requires_secure_parameter: Scopes can only be defined on secure
242+
parameters.
243+
scopes_cannot_be_empty: Scopes cannot be empty when defined.
244+
invalid_secure_parameter_scopes: 'Invalid secure parameter scopes: %{invalid_scope}.'
241245
warning:
242246
app_build:
243247
deprecated_version: You are targeting a deprecated version of the framework.

config/locales/translations/zendesk_apps_support.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,3 +627,15 @@ parts:
627627
key: "txt.apps.admin.error.app_build.password_parameter_type_deprecated"
628628
title: "App builder job: Password parameter type is deprecated"
629629
value: "Password parameter type can no longer be used. Use Secure settings instead. Learn more: %{link}."
630+
- translation:
631+
key: "txt.apps.admin.error.app_build.scope_requires_secure_parameter"
632+
title: "App builder job: scopes can be defined only on secure parameters"
633+
value: "Scopes can only be defined on secure parameters."
634+
- translation:
635+
key: "txt.apps.admin.error.app_build.scopes_cannot_be_empty"
636+
title: "App builder job: scopes cannot be empty when defined"
637+
value: "Scopes cannot be empty when defined."
638+
- translation:
639+
key: "txt.apps.admin.error.app_build.invalid_secure_parameter_scopes"
640+
title: "App builder job: invalid secure parameter scopes"
641+
value: "Invalid secure parameter scopes: %{invalid_scope}."

0 commit comments

Comments
 (0)