Leopoldthecoder 8 жил өмнө
parent
commit
27affb22c0

+ 1 - 1
Makefile

@@ -33,7 +33,7 @@ deploy:
 	@npm run deploy
 
 pub:
-	./node_modules/.bin/kp $(filter-out $@,$(MAKECMDGOALS))
+	npm run pub
 
 pub-all:
 	npm run pub:all

+ 2 - 0
examples/i18n/page.json

@@ -3,6 +3,7 @@
     "lang": "zh-CN",
     "pages": {
       "index": {
+        "lang": "zh-CN",
         "titleSize": "46",
         "theatreSize": "46",
         "paraHeight": "1.8",
@@ -96,6 +97,7 @@
     "lang": "en-US",
     "pages": {
       "index": {
+        "lang": "en-US",
         "titleSize": "50",
         "theatreSize": "42",
         "paraHeight": "1.6",

+ 3 - 3
examples/pages/template/index.tpl

@@ -179,7 +179,7 @@
             <p><%= 4 ></p>
             <router-link
               active-class="active"
-              to="/guide/design"
+              to="/<%= lang >/guide/design"
               exact><%= 5 >
             </router-link>
           </div>
@@ -191,7 +191,7 @@
             <p><%= 7 ></p>
             <router-link
               active-class="active"
-              to="/component/layout"
+              to="/<%= lang >/component/layout"
               exact><%= 5 >
             </router-link>
           </div>
@@ -203,7 +203,7 @@
             <p><%= 9 ></p>
             <router-link
               active-class="active" 
-              to="/resource"
+              to="/<%= lang >/resource"
               exact><%= 5 >
             </router-link>
           </div>