diff --git a/markdown/org/docs/site/account/en.md b/markdown/org/docs/site/account/en.md new file mode 100644 index 00000000000..c6c9a5e7a66 --- /dev/null +++ b/markdown/org/docs/site/account/en.md @@ -0,0 +1,5 @@ +--- +title: Account +--- + +FIXME diff --git a/markdown/org/docs/site/account/language/en.md b/markdown/org/docs/site/account/language/en.md new file mode 100644 index 00000000000..c39f33d103f --- /dev/null +++ b/markdown/org/docs/site/account/language/en.md @@ -0,0 +1,11 @@ +--- +title: Language +--- + +This controls the **language** that will be used to generate your patterns, +as well send you emails and so on. + +It is in other words a central language setting stored in your account. + +It does not control the language of the website itself. +That setting -- just like the theme you prefer -- is stored on your device, not in our backend. diff --git a/markdown/org/docs/site/account/units/en.md b/markdown/org/docs/site/account/units/en.md new file mode 100644 index 00000000000..3a6ef6cb7cf --- /dev/null +++ b/markdown/org/docs/site/account/units/en.md @@ -0,0 +1,11 @@ +--- +title: Units +--- + +FreeSewing support both **metric units** (cm) and **imperial units** (inch). + +Here you can choose which type of units you prefer. + +Note that you can override these default units in various places, such as on a +specific pattern or measurements set. + diff --git a/sites/shared/components/account/imperial.mjs b/sites/shared/components/account/imperial.mjs index 87f0209e815..68220f342df 100644 --- a/sites/shared/components/account/imperial.mjs +++ b/sites/shared/components/account/imperial.mjs @@ -6,8 +6,10 @@ import { useAccount } from 'shared/hooks/use-account.mjs' import { useBackend } from 'shared/hooks/use-backend.mjs' import { useLoadingStatus } from 'shared/hooks/use-loading-status.mjs' // Components -import { Choice, Icons, welcomeSteps, BackToAccountButton } from './shared.mjs' +import { Icons, welcomeSteps, BackToAccountButton, NumberBullet } from './shared.mjs' import { ContinueButton } from 'shared/components/buttons/continue-button.mjs' +import { ListInput } from 'shared/components/inputs.mjs' +import { DynamicOrgDocs } from 'shared/components/dynamic-docs/org.mjs' export const ns = ['account', 'status'] @@ -16,7 +18,7 @@ export const ImperialSettings = ({ title = false, welcome = false }) => { const { account, setAccount } = useAccount() const { setLoadingStatus, LoadingStatus } = useLoadingStatus() const backend = useBackend() - const { t } = useTranslation(ns) + const { t, i18n } = useTranslation(ns) // State const [selection, setSelection] = useState(account?.imperial === true ? 'imperial' : 'metric') @@ -43,23 +45,22 @@ export const ImperialSettings = ({ title = false, welcome = false }) => { return (
- {title ?

{t('unitsTitle')}

:

} - {['metric', 'imperial'].map((val) => ( - ", no: cm }} - > - - {selection === 1 && val === 2 ? t('showMore') : t(`${val}Units`)} - - {t(`${val}Unitsd`)} - - ))} + ({ + val, + label: ( +
+ {t(`${val}Units`)} + +
+ ), + desc: t(`${val}Unitsd`), + }))} + current={selection} + update={update} + docs={} + /> {welcome ? ( <> diff --git a/sites/shared/components/inputs.mjs b/sites/shared/components/inputs.mjs index 7d008eb8df5..eeb51cb797a 100644 --- a/sites/shared/components/inputs.mjs +++ b/sites/shared/components/inputs.mjs @@ -61,7 +61,7 @@ export const FormControl = ({ onClick={() => setModal( - {docs} +
{docs}
) }