Merge pull request #6082 from BenJamesBen/optional-measurements-missing-i18n
fix(shared): Add i18n for pattern measurements UI
This commit is contained in:
commit
80b2bf9495
2 changed files with 3 additions and 2 deletions
|
@ -308,6 +308,7 @@ code: Code
|
|||
aboutThing: About { thing }
|
||||
requiredMeasurements: Required measurements
|
||||
optionalMeasurements: Optional measurements
|
||||
none: None
|
||||
designOptions: Design options
|
||||
parts: Parts
|
||||
plugins: Plugins
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue