1
0
Fork 0

Merge pull request #6082 from BenJamesBen/optional-measurements-missing-i18n

fix(shared): Add i18n for pattern measurements UI
This commit is contained in:
Joost De Cock 2024-02-18 15:49:34 +01:00 committed by GitHub
commit 80b2bf9495
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View file

@ -308,6 +308,7 @@ code: Code
aboutThing: About { thing }
requiredMeasurements: Required measurements
optionalMeasurements: Optional measurements
none: None
designOptions: Design options
parts: Parts
plugins: Plugins

View file

@ -17,7 +17,7 @@ export const MeasiesEditor = ({ Design, settings, update }) => {
<div className="max-w-2xl mx-auto">
<h5>{t('account:requiredMeasurements')}</h5>
{Object.keys(Design.patternConfig.measurements).length === 0 ? (
<p>(None)</p>
<p>({t('account:none')})</p>
) : (
<div>
{Design.patternConfig.measurements.map((m) => (
@ -41,7 +41,7 @@ export const MeasiesEditor = ({ Design, settings, update }) => {
)}
<h5>{t('account:optionalMeasurements')}</h5>
{Object.keys(Design.patternConfig.optionalMeasurements).length === 0 ? (
<p>(None)</p>
<p>({t('account:none')})</p>
) : (
Design.patternConfig.optionalMeasurements.map((m) => (
<MeasieInput