Переглянути джерело

Fix language for Pagination v0.1.1

杜府 3 роки тому
батько
коміт
ad53f8ea78

+ 1 - 1
components/package.json

@@ -1,6 +1,6 @@
 {
     "name": "stdf",
-    "version": "0.1.0",
+    "version": "0.1.1",
     "description": "Mobile Web component library based on Svelte and Tailwind",
     "main": "index.js",
     "scripts": {

+ 1 - 2
components/src/pagination/Pagination.svelte

@@ -12,8 +12,7 @@
 
     // 当前语言
     // current language
-    // const currentLang = getContext('STDF_lang') || zh_CN;
-    const currentLang = zh_CN;
+    const currentLang = getContext('STDF_lang') || zh_CN;
     const commonLang = currentLang.common;
     const paginationLang = currentLang.pagination;