fix(sample-website): add missing i18n configuration to fix build failure
This commit is contained in:
5
apps/sample-website/messages/en.json
Normal file
5
apps/sample-website/messages/en.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"Index": {
|
||||
"title": "Welcome"
|
||||
}
|
||||
}
|
||||
@@ -11,18 +11,19 @@
|
||||
"test": "vitest run"
|
||||
},
|
||||
"dependencies": {
|
||||
"@mintel/next-utils": "workspace:*",
|
||||
"next": "15.1.6",
|
||||
"next-intl": "^4.8.2",
|
||||
"react": "^19.0.0",
|
||||
"react-dom": "^19.0.0",
|
||||
"@mintel/next-utils": "workspace:*"
|
||||
"react-dom": "^19.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@mintel/eslint-config": "workspace:*",
|
||||
"@mintel/next-config": "workspace:*",
|
||||
"@mintel/tsconfig": "workspace:*",
|
||||
"@types/node": "^20.0.0",
|
||||
"@types/react": "^19.0.0",
|
||||
"@types/react-dom": "^19.0.0",
|
||||
"typescript": "^5.0.0",
|
||||
"@mintel/tsconfig": "workspace:*",
|
||||
"@mintel/eslint-config": "workspace:*",
|
||||
"@mintel/next-config": "workspace:*"
|
||||
"typescript": "^5.0.0"
|
||||
}
|
||||
}
|
||||
|
||||
7
apps/sample-website/src/i18n/request.ts
Normal file
7
apps/sample-website/src/i18n/request.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { createMintelI18nRequestConfig } from "@mintel/next-utils";
|
||||
|
||||
export default createMintelI18nRequestConfig(
|
||||
["en"],
|
||||
"en",
|
||||
(locale) => import(`../../messages/${locale}.json`),
|
||||
);
|
||||
Reference in New Issue
Block a user