@ledvance/base 1.2.29 → 1.2.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/i18n/strings.ts +1247 -1247
- package/src/utils/common.ts +20 -0
package/src/utils/common.ts
CHANGED
|
@@ -195,6 +195,25 @@ export const monthFormat = (v: number | string) => {
|
|
|
195
195
|
return monthText[Number(v) - 1]
|
|
196
196
|
}
|
|
197
197
|
|
|
198
|
+
//月份格式化
|
|
199
|
+
export const monthFormatShort = (v: number | string) => {
|
|
200
|
+
const monthText = [
|
|
201
|
+
I18n.getLang('month_short_january'),
|
|
202
|
+
I18n.getLang('month_short_february'),
|
|
203
|
+
I18n.getLang('month_short_march'),
|
|
204
|
+
I18n.getLang('month_short_april'),
|
|
205
|
+
I18n.getLang('month_short_may'),
|
|
206
|
+
I18n.getLang('month_short_june'),
|
|
207
|
+
I18n.getLang('month_short_july'),
|
|
208
|
+
I18n.getLang('month_short_august'),
|
|
209
|
+
I18n.getLang('month_short_september'),
|
|
210
|
+
I18n.getLang('month_short_october'),
|
|
211
|
+
I18n.getLang('month_short_november'),
|
|
212
|
+
I18n.getLang('month_short_december'),
|
|
213
|
+
]
|
|
214
|
+
return monthText[Number(v) - 1]
|
|
215
|
+
}
|
|
216
|
+
|
|
198
217
|
export const tagTitle = [
|
|
199
218
|
I18n.getLang('feature_summary_action_component_6'),
|
|
200
219
|
I18n.getLang('feature_summary_action_component_7'),
|
|
@@ -310,3 +329,4 @@ export function convertMinutesTo12HourFormat(minutes: number) {
|
|
|
310
329
|
|
|
311
330
|
return time12Hour;
|
|
312
331
|
}
|
|
332
|
+
|