-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
599 additions
and
750 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export * from './locale' | ||
export * from './useTranslate' |
86 changes: 44 additions & 42 deletions
86
...nutui/components/_locale/lang/baseLang.ts → packages/nutui/_locale/lang/baseLang.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,109 +1,111 @@ | ||
export abstract class BaseLang { | ||
abstract save: string | ||
abstract confirm: string | ||
abstract cancel: string | ||
abstract done: string | ||
abstract noData: string | ||
abstract placeholder: string | ||
abstract select: string | ||
abstract video: { | ||
export interface BaseLang { | ||
save: string | ||
confirm: string | ||
cancel: string | ||
done: string | ||
noData: string | ||
placeholder: string | ||
select: string | ||
video: { | ||
errorTip: string | ||
clickRetry: string | ||
} | ||
|
||
abstract fixednav: { | ||
fixednav: { | ||
activeText: string | ||
unActiveText: string | ||
} | ||
|
||
abstract pagination: { | ||
pagination: { | ||
prev: string | ||
next: string | ||
} | ||
|
||
abstract calendaritem: { | ||
calendaritem: { | ||
weekdays: Array<string> | ||
end: string | ||
start: string | ||
title: string | ||
monthTitle: Function | ||
today: string | ||
} | ||
|
||
abstract shortpassword: { | ||
shortpassword: { | ||
title: string | ||
desc: string | ||
tips: string | ||
} | ||
|
||
abstract uploader: { | ||
uploader: { | ||
ready: string | ||
readyUpload: string | ||
waitingUpload: string | ||
uploading: string | ||
success: string | ||
error: string | ||
} | ||
|
||
abstract countdown: { | ||
countdown: { | ||
day: string | ||
hour: string | ||
minute: string | ||
second: string | ||
} | ||
|
||
abstract address: { | ||
address: { | ||
selectRegion: string | ||
deliveryTo: string | ||
chooseAnotherAddress: string | ||
} | ||
|
||
abstract signature: { | ||
signature: { | ||
reSign: string | ||
unSupportTpl: string | ||
} | ||
|
||
abstract ecard: { | ||
ecard: { | ||
chooseText: string | ||
otherValueText: string | ||
placeholder: string | ||
} | ||
|
||
abstract timeselect: { | ||
timeselect: { | ||
pickupTime: string | ||
} | ||
|
||
abstract sku: { | ||
sku: { | ||
buyNow: string | ||
buyNumber: string | ||
addToCart: string | ||
} | ||
|
||
abstract skuheader: { | ||
skuheader: { | ||
skuId: string | ||
} | ||
|
||
abstract addresslist: { | ||
addresslist: { | ||
addAddress: string | ||
default: string | ||
} | ||
|
||
abstract comment: { | ||
comment: { | ||
complaintsText: string | ||
additionalReview: Function | ||
additionalImages: Function | ||
} | ||
|
||
abstract infiniteloading: { | ||
infiniteloading: { | ||
loading: string | ||
pullTxt: string | ||
loadMoreTxt: string | ||
} | ||
|
||
abstract pullrefresh: { | ||
datepicker: { | ||
year: string | ||
month: string | ||
day: string | ||
hour: string | ||
min: string | ||
seconds: string | ||
} | ||
audiooperate: { | ||
back: string | ||
start: string | ||
pause: string | ||
forward: string | ||
mute: string | ||
} | ||
pullrefresh: { | ||
pulling: string | ||
loosing: string | ||
loading: string | ||
} | ||
} | ||
export default BaseLang | ||
|
||
export function defineLocaleConfig(locale: BaseLang) { | ||
return locale | ||
} |
Oops, something went wrong.