Fix untranslated media editor crop presets

This commit is contained in:
Jamie Kyle 2023-12-19 15:18:30 -08:00 committed by GitHub
parent 2753317c51
commit 5af421e5b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 3 deletions

View file

@ -6067,6 +6067,18 @@
"messageformat": "Add a message",
"description": "Label of the button on the bottom of the media editor that trigger the add-caption dialog"
},
"icu:MediaEditor__crop-preset--freeform": {
"messageformat": "Freeform",
"description": "Media editor > image editing controls > crop tool > Crop presets > Freeform"
},
"icu:MediaEditor__crop-preset--square": {
"messageformat": "Square",
"description": "Media editor > image editing controls > crop tool > Crop presets > Square"
},
"icu:MediaEditor__crop-preset--9-16": {
"messageformat": "9:16",
"description": "Media editor > image editing controls > crop tool > Crop presets > 9:16 (9 by 16)"
},
"icu:MyStories__title": {
"messageformat": "My Stories",
"description": "Title for the my stories list"

View file

@ -912,7 +912,7 @@ export function MediaEditor({
onClick={() => setCropPreset(CropPreset.Freeform)}
type="button"
>
Freeform
{i18n('icu:MediaEditor__crop-preset--freeform')}
</button>
<button
className={classNames(
@ -925,7 +925,7 @@ export function MediaEditor({
onClick={() => setCropPreset(CropPreset.Square)}
type="button"
>
Square
{i18n('icu:MediaEditor__crop-preset--square')}
</button>
<button
className={classNames(
@ -938,7 +938,7 @@ export function MediaEditor({
onClick={() => setCropPreset(CropPreset.Vertical)}
type="button"
>
9:16
{i18n('icu:MediaEditor__crop-preset--9-16')}
</button>
</div>
<div className="MediaEditor__tools-row-2">