add french translation
This commit is contained in:
parent
684609a1dd
commit
5b430cf31e
|
@ -2,7 +2,7 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
i18n: {
|
i18n: {
|
||||||
defaultLocale: "en",
|
defaultLocale: "en",
|
||||||
locales: ["en", "it"],
|
locales: ["en", "it", "fr"],
|
||||||
},
|
},
|
||||||
reloadOnPrerender: process.env.NODE_ENV === "development",
|
reloadOnPrerender: process.env.NODE_ENV === "development",
|
||||||
};
|
};
|
||||||
|
|
|
@ -210,7 +210,7 @@ export default function Account() {
|
||||||
className="select border border-neutral-content focus:outline-none focus:border-primary duration-100 w-full bg-base-200 rounded-[0.375rem] min-h-0 h-[2.625rem] leading-4 p-2"
|
className="select border border-neutral-content focus:outline-none focus:border-primary duration-100 w-full bg-base-200 rounded-[0.375rem] min-h-0 h-[2.625rem] leading-4 p-2"
|
||||||
>
|
>
|
||||||
{i18n.locales.map((locale) => (
|
{i18n.locales.map((locale) => (
|
||||||
<option key={locale} value={locale}>
|
<option key={locale} value={locale} className="capitalize">
|
||||||
{new Intl.DisplayNames(locale, { type: "language" }).of(
|
{new Intl.DisplayNames(locale, { type: "language" }).of(
|
||||||
locale
|
locale
|
||||||
) || ""}
|
) || ""}
|
||||||
|
|
Ŝarĝante…
Reference in New Issue