feat: Implement internationalization with react-i18next, add translation files, and integrate language switching across components.
This commit is contained in:
12
k-notes-frontend/i18next.config.ts
Normal file
12
k-notes-frontend/i18next.config.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { defineConfig } from 'i18next-cli';
|
||||
|
||||
export default defineConfig({
|
||||
locales: [
|
||||
"en",
|
||||
"pl"
|
||||
],
|
||||
extract: {
|
||||
input: "src/**/*.{js,jsx,ts,tsx}",
|
||||
output: "public/locales/{{language}}/{{namespace}}.json"
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user