Skip to content

Commit e7e2a46

Browse files
committed
Migrate from i18next-parser to i18next-cli
1 parent 30044d1 commit e7e2a46

File tree

5 files changed

+932
-1539
lines changed

5 files changed

+932
-1539
lines changed

frontend/i18next-parser.config.ts

Lines changed: 0 additions & 33 deletions
This file was deleted.

frontend/i18next.config.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// Copyright 2025 New Vector Ltd.
2+
//
3+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
4+
// Please see LICENSE files in the repository root for full details.
5+
6+
import { defineConfig } from "i18next-cli";
7+
8+
export default defineConfig({
9+
locales: ["en"],
10+
extract: {
11+
input: "src/**/*.{ts,tsx}",
12+
output: "locales/{{language}}.json",
13+
defaultNS: false,
14+
pluralSeparator: ":",
15+
keySeparator: ".",
16+
sort: true,
17+
},
18+
});

frontend/locales/en.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -287,9 +287,6 @@
287287
"delete_button_title": "Remove email address",
288288
"email": "Email"
289289
},
290-
"user_email_list": {
291-
"no_primary_email_alert": "No primary email address"
292-
},
293290
"user_sessions_overview": {
294291
"heading": "Where you're signed in",
295292
"no_active_sessions": {

0 commit comments

Comments
 (0)