Comparing version 1.2.4 to 1.2.5
@@ -10,2 +10,6 @@ # 紫微斗数 @sylarlong/astro | ||
## v1.2.5 | ||
## v1.2.4 | ||
@@ -12,0 +16,0 @@ |
@@ -83,18 +83,14 @@ "use strict"; | ||
var kot = function (value, k) { | ||
for (var lng in resources) { | ||
var res = resources[lng].translation; | ||
for (var key in res) { | ||
if (k) { | ||
if (Object.prototype.hasOwnProperty.call(res, key) && res[key] === value && key.includes(k)) { | ||
return key; | ||
} | ||
var res = value; | ||
for (var _i = 0, _a = Object.entries(resources); _i < _a.length; _i++) { | ||
var _b = _a[_i], item = _b[1]; | ||
for (var _c = 0, _d = Object.entries(item.translation); _c < _d.length; _c++) { | ||
var _e = _d[_c], transKey = _e[0], trans = _e[1]; | ||
if (((k && transKey.includes(k)) || !k) && trans === value) { | ||
res = transKey; | ||
return res; | ||
} | ||
else { | ||
if (Object.prototype.hasOwnProperty.call(res, key) && res[key] === value) { | ||
return key; | ||
} | ||
} | ||
} | ||
} | ||
return value; | ||
return res; | ||
}; | ||
@@ -101,0 +97,0 @@ exports.kot = kot; |
@@ -78,2 +78,3 @@ declare const _default: { | ||
jielu: "截路"; | ||
yuede: "月德"; | ||
tianshang: "天傷"; | ||
@@ -80,0 +81,0 @@ tianshi: "天使"; |
@@ -62,2 +62,3 @@ declare const _default: { | ||
readonly jielu: "截路"; | ||
readonly yuede: "月德"; | ||
readonly tianshang: "天傷"; | ||
@@ -64,0 +65,0 @@ readonly tianshi: "天使"; |
@@ -64,2 +64,3 @@ "use strict"; | ||
jielu: '截路', | ||
yuede: '月德', | ||
tianshang: '天傷', | ||
@@ -66,0 +67,0 @@ tianshi: '天使', |
{ | ||
"name": "iztro", | ||
"version": "1.2.4", | ||
"version": "1.2.5", | ||
"description": "轻量级紫微斗数星盘生成库。可以通过出生年月日获取到紫微斗数星盘信息、生肖、星座等信息。A lightweight kit to astrolabe generator of The Purple Star Astrology (Zi Wei Dou Shu). The Purple Star Astrology(Zi Wei Dou Shu) is a Chinese ancient astrology. You're able to get your horoscope and personality from the astrolabe", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -154,3 +154,3 @@ <div align="center"> | ||
![demo](https://github.com/SylarLong/iztro/assets/6510425/d2108ed7-6794-418a-b0e5-872c71ba6e1d) | ||
<img width="966" alt="image" src="https://github.com/SylarLong/react-iztro/assets/6510425/f4335997-fdd8-42e2-bb1a-600942f9b0ba"> | ||
@@ -157,0 +157,0 @@ ### Star History |
@@ -148,3 +148,3 @@ <div align="center"> | ||
- 假如妳擅長外語,我們也歡迎妳對國際化文件的翻譯做出妳的貢獻,妳可以`fork`本倉庫,然後在[locales](https://github.com/SylarLong/iztro/tree/main/src/i18n/locales)文件夾下創建壹個國際化語言文件,然後復制其他語言文件目錄裏面的文件到妳的目錄下進行更改。 | ||
- 當然,如果在我挑燈碼字的時候能的到妳贊助的咖啡,在下也是不勝感激 [![Static Badge](https://img.shields.io/badge/PaypalMe-8A2BE2?logo=paypal&link=https%3A%2F%2Fwww.paypal.com%2Fsylarlong) | ||
- 當然,如果你覺得本程序對你有用,請給我買杯咖啡☕️ [![Static Badge](https://img.shields.io/badge/PaypalMe-8A2BE2?logo=paypal&link=https%3A%2F%2Fwww.paypal.com%2Fsylarlong) | ||
](https://PayPal.Me/sylarlong) | ||
@@ -156,3 +156,3 @@ | ||
![demo](https://github.com/SylarLong/iztro/assets/6510425/d2108ed7-6794-418a-b0e5-872c71ba6e1d) | ||
<img width="966" alt="image" src="https://github.com/SylarLong/react-iztro/assets/6510425/f4335997-fdd8-42e2-bb1a-600942f9b0ba"> | ||
@@ -159,0 +159,0 @@ ### Star趨勢 |
@@ -149,3 +149,3 @@ <div align="center"> | ||
- 假如你擅长外语,我们也欢迎你对国际化文件的翻译做出你的贡献,你可以`fork`本仓库,然后在[locales](https://github.com/SylarLong/iztro/tree/main/src/i18n/locales)文件夹下创建一个国际化语言文件,然后复制其他语言文件目录里面的文件到你的目录下进行更改。 | ||
- 当然,如果在我挑灯码字的时候能的到你赞助的咖啡,在下也是不胜感激 [![Static Badge](https://img.shields.io/badge/PaypalMe-8A2BE2?logo=paypal&link=https%3A%2F%2Fwww.paypal.com%2Fsylarlong) | ||
- 当然,如果你觉得本程序对你有用,请给我买杯咖啡☕️ [![Static Badge](https://img.shields.io/badge/PaypalMe-8A2BE2?logo=paypal&link=https%3A%2F%2Fwww.paypal.com%2Fsylarlong) | ||
](https://PayPal.Me/sylarlong) | ||
@@ -157,3 +157,3 @@ | ||
![demo](https://github.com/SylarLong/iztro/assets/6510425/d2108ed7-6794-418a-b0e5-872c71ba6e1d) | ||
<img width="966" alt="image" src="https://github.com/SylarLong/react-iztro/assets/6510425/f4335997-fdd8-42e2-bb1a-600942f9b0ba"> | ||
@@ -160,0 +160,0 @@ ### Star趋势 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
434001
11597