add french translation

This commit is contained in:
daniel31x13 2024-08-14 17:49:53 -04:00
parent 684609a1dd
commit 5b430cf31e
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
module.exports = {
i18n: {
defaultLocale: "en",
locales: ["en", "it"],
locales: ["en", "it", "fr"],
},
reloadOnPrerender: process.env.NODE_ENV === "development",
};

View File

@ -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"
>
{i18n.locales.map((locale) => (
<option key={locale} value={locale}>
<option key={locale} value={locale} className="capitalize">
{new Intl.DisplayNames(locale, { type: "language" }).of(
locale
) || ""}