以下の方法で日本語化できます。
① /data/routes
, /data/dictionary
内のen.yml
をja-JP.yml
にリネーム
② /package.json
のlanguage
を以下のように修正
"config": {
"appName": "myproject",
"rootPlaceholders": [
"jss-main"
],
"sitecoreDistPath": "/dist/myproject",
"sitecoreConfigPath": "/App_Config/Include/zzz",
"graphQLEndpointPath": "/api/myproject",
- "language": "en"
+ "language": "ja-JP"
},
③ /sitecore/config/{project-name}.config
を以下のように修正
<site patch:before="site[@name='website']"
inherits="website"
name="myproject"
hostName="myproject.dev.local"
rootPath="/sitecore/content/myproject"
startItem="/home"
+ language="ja-JP"
database="master" />
Top comments (0)