diff --git a/src/modules/locales.ts b/src/modules/locales.ts
index e033ce81..d9b05f85 100644
--- a/src/modules/locales.ts
+++ b/src/modules/locales.ts
@@ -1,7 +1,6 @@
-import i18next from "i18next";
+import i18next, { type TOptions } from "i18next";
import i18nextHTTPBackend from "i18next-http-backend";
import { isVowel } from "../utils";
-import { TOptions } from "i18next";
function initTooltips() {
for (const tip of document.querySelectorAll("[data-tip]")) {
@@ -14,7 +13,7 @@ function initTooltips() {
function updateLabels() {
for (const label of document.querySelectorAll("[data-html]")) {
- let vars: TOptions = {
+ const vars: TOptions = {
interpolation: { escapeValue: false },
};
for (const attr of label.attributes) {
@@ -42,7 +41,7 @@ function updateLabels() {
function addFormatters() {
i18next.services.formatter?.add("link", (value, _lng, options) => {
- return `${options.text}`;
+ return `${options.text}`;
});
i18next.services.formatter?.add("gender", (value, lng, options) => {
if (lng !== "fr") return value;
diff --git a/src/utils/languageUtils.ts b/src/utils/languageUtils.ts
index 31f44296..a31d9f90 100644
--- a/src/utils/languageUtils.ts
+++ b/src/utils/languageUtils.ts
@@ -232,7 +232,7 @@ export const getAdjective = (nounToBeAdjective: string) => {
{
name: "ie",
probability: 1,
- condition: /e$/,
+ condition: /ie$/,
action: (noun: string) => `${noun}n`,
},
{