- Install next-intl package - Create LanguageProvider hook with localStorage persistence - Create IntlProvider component for next-intl integration - Create Providers wrapper component - Update layout.tsx to include providers and set default lang to 'es' - Create initial translation files (common.json) for es, en, ca - Fix pre-existing TypeScript errors in various pages All tests passing, build successful.
43 lines
1.2 KiB
JSON
43 lines
1.2 KiB
JSON
{
|
|
"name": "frontend",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "next dev",
|
|
"build": "next build",
|
|
"start": "next start",
|
|
"test": "vitest run",
|
|
"test:coverage": "vitest run --coverage",
|
|
"test:e2e": "playwright test",
|
|
"generate-api-types": "openapi-typescript http://localhost:8000/openapi.json -o app/generated/api.ts",
|
|
"lint": "eslint .",
|
|
"lint:fix": "eslint . --fix",
|
|
"format": "prettier --write .",
|
|
"format:check": "prettier --check ."
|
|
},
|
|
"dependencies": {
|
|
"bech32": "^2.0.0",
|
|
"next": "15.1.2",
|
|
"next-intl": "^4.6.1",
|
|
"react": "19.0.0",
|
|
"react-dom": "19.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^9.39.2",
|
|
"@playwright/test": "^1.49.1",
|
|
"@testing-library/react": "^16.1.0",
|
|
"@types/node": "25.0.3",
|
|
"@types/react": "19.2.7",
|
|
"@vitejs/plugin-react": "^4.3.4",
|
|
"@vitest/coverage-v8": "^2.1.9",
|
|
"eslint": "^9.39.2",
|
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
"jsdom": "^26.0.0",
|
|
"openapi-typescript": "^7.10.1",
|
|
"prettier": "^3.7.4",
|
|
"typescript": "5.9.3",
|
|
"typescript-eslint": "^8.50.0",
|
|
"vitest": "^2.1.8"
|
|
}
|
|
}
|