Skeleton for language picker.
This commit is contained in:
4
src/constants/localization/common/en.ts
Normal file
4
src/constants/localization/common/en.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export const common: Record<string, string> = {
|
||||
"common.title": "Lintu and Maslo",
|
||||
"common.subtitle": "August 2022"
|
||||
}
|
||||
4
src/constants/localization/common/fi.ts
Normal file
4
src/constants/localization/common/fi.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export const common: Record<string, string> = {
|
||||
"common.title": "Lintu ja Maslo",
|
||||
"common.subtitle": "Elokuussa 2022"
|
||||
}
|
||||
7
src/constants/localization/en.ts
Normal file
7
src/constants/localization/en.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { common } from "./common/en";
|
||||
|
||||
const en: Record<string, string> = {
|
||||
...common
|
||||
}
|
||||
|
||||
export default en;
|
||||
7
src/constants/localization/fi.ts
Normal file
7
src/constants/localization/fi.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { common } from "./common/fi";
|
||||
|
||||
const fi: Record<string, string> = {
|
||||
...common
|
||||
}
|
||||
|
||||
export default fi;
|
||||
7
src/constants/localization/index.ts
Normal file
7
src/constants/localization/index.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import fi from "./fi";
|
||||
import en from "./en";
|
||||
|
||||
export const localization: { [key: string]: Record<string, string> } = {
|
||||
fi,
|
||||
en
|
||||
}
|
||||
Reference in New Issue
Block a user