diff --git a/i18n/en_US.yaml b/i18n/en_US.yaml index e02c3382..f00aa68e 100644 --- a/i18n/en_US.yaml +++ b/i18n/en_US.yaml @@ -324,7 +324,7 @@ ui: msg: empty: Code cannot be empty. language: - label: Language (optional) + label: Language placeholder: Automatic detection btn_cancel: Cancel btn_confirm: Add @@ -360,7 +360,7 @@ ui: only_image: Only image files are allowed. max_size: File size cannot exceed 4MB. desc: - label: Description (optional) + label: Description tab_url: Image URL form_url: fields: @@ -369,7 +369,7 @@ ui: msg: empty: Image URL cannot be empty. name: - label: Description (optional) + label: Description btn_cancel: Cancel btn_confirm: Add uploading: Uploading @@ -389,7 +389,7 @@ ui: msg: empty: URL cannot be empty. name: - label: Description (optional) + label: Description btn_cancel: Cancel btn_confirm: Add ordered_list: @@ -437,7 +437,7 @@ ui: range: URL slug up to 35 characters. character: URL slug contains unallowed character set. desc: - label: Description (optional) + label: Description btn_cancel: Cancel btn_submit: Submit tag_info: @@ -705,13 +705,13 @@ ui: default: System msg: Please upload an avatar bio: - label: About Me (optional) + label: About Me website: - label: Website (optional) + label: Website placeholder: "https://example.com" msg: Website incorrect format location: - label: Location (optional) + label: Location placeholder: "City, Country" notification: heading: Notifications @@ -1208,11 +1208,11 @@ ui: validate: Please enter a valid URL. text: The address of your site. short_desc: - label: Short Site Description (optional) + label: Short Site Description msg: Short site description cannot be empty. text: "Short description, as used in the title tag on homepage." desc: - label: Site Description (optional) + label: Site Description msg: Site description cannot be empty. text: "Describe this site in one sentence, as used in the meta description tag." contact_email: @@ -1222,14 +1222,6 @@ ui: text: Email address of key contact responsible for this site. interface: page_title: Interface - logo: - label: Logo (optional) - msg: Site logo cannot be empty. - text: You can upload your image or <1>reset it to the site title text. - theme: - label: Theme - msg: Theme cannot be empty. - text: Select an existing theme. language: label: Interface Language msg: Interface language cannot be empty. @@ -1281,18 +1273,18 @@ ui: branding: page_title: Branding logo: - label: Logo (optional) + label: Logo msg: Logo cannot be empty. text: The logo image at the top left of your site. Use a wide rectangular image with a height of 56 and an aspect ratio greater than 3:1. If left blank, the site title text will be shown. mobile_logo: - label: Mobile Logo (optional) + label: Mobile Logo text: The logo used on mobile version of your site. Use a wide rectangular image with a height of 56. If left blank, the image from the "logo" setting will be used. square_icon: - label: Square Icon (optional) + label: Square Icon msg: Square icon cannot be empty. text: Image used as the base for metadata icons. Should ideally be larger than 512x512. favicon: - label: Favicon (optional) + label: Favicon text: A favicon for your site. To work correctly over a CDN it must be a png. Will be resized to 32x32. If left blank, "square icon" will be used. legal: page_title: Legal @@ -1359,6 +1351,7 @@ ui: text: Only logged in users can access this community. form: + optional: (optional) empty: cannot be empty invalid: is invalid btn_submit: Save diff --git a/ui/src/components/Editor/ToolBars/code.tsx b/ui/src/components/Editor/ToolBars/code.tsx index 404077a6..5e12195a 100644 --- a/ui/src/components/Editor/ToolBars/code.tsx +++ b/ui/src/components/Editor/ToolBars/code.tsx @@ -239,7 +239,12 @@ const Code: FC = ({ editor, wrapText }) => { )} - {t('code.form.fields.language.label')} + {`${t('code.form.fields.language.label')} ${t( + 'optional', + { + keyPrefix: 'form', + }, + )}`}