clean up i18n
This commit is contained in:
parent
423b46d006
commit
f4201f091d
|
|
@ -62,7 +62,7 @@ const Forgot: React.FC = () => {
|
||||||
{t('auth.sending')}
|
{t('auth.sending')}
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
t('auth.forgot.button')
|
t('auth.send')
|
||||||
)}
|
)}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -164,7 +164,7 @@ const Registration: React.FC = () => {
|
||||||
{t('auth.registering')}
|
{t('auth.registering')}
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
t('auth.register-button')
|
t('auth.register')
|
||||||
)}
|
)}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -99,7 +99,7 @@ const Reset: React.FC = () => {
|
||||||
{t('auth.resetting')}
|
{t('auth.resetting')}
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
t('auth.reset-button')
|
t('auth.reset')
|
||||||
)}
|
)}
|
||||||
</button>
|
</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
|
||||||
|
|
@ -25,10 +25,10 @@ export function remainingTimeText(remainingTime: number): string {
|
||||||
return time < 60
|
return time < 60
|
||||||
? t('user.signRemainingTime', {
|
? t('user.signRemainingTime', {
|
||||||
time: ~~time,
|
time: ~~time,
|
||||||
unit: t('user.time-unit-min'),
|
unit: t('user.timeUnitMin'),
|
||||||
})
|
})
|
||||||
: t('user.signRemainingTime', {
|
: t('user.signRemainingTime', {
|
||||||
time: ~~(time / 60),
|
time: ~~(time / 60),
|
||||||
unit: t('user.time-unit-hour'),
|
unit: t('user.timeUnitHour'),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ describe('submit', () => {
|
||||||
fireEvent.input(getByPlaceholderText(t('auth.captcha')), {
|
fireEvent.input(getByPlaceholderText(t('auth.captcha')), {
|
||||||
target: { value: 'abc' },
|
target: { value: 'abc' },
|
||||||
})
|
})
|
||||||
fireEvent.click(getByText(t('auth.forgot.button')))
|
fireEvent.click(getByText(t('auth.send')))
|
||||||
await waitFor(() =>
|
await waitFor(() =>
|
||||||
expect(fetch.post).toBeCalledWith(urls.auth.forgot(), {
|
expect(fetch.post).toBeCalledWith(urls.auth.forgot(), {
|
||||||
email: 'a@b.c',
|
email: 'a@b.c',
|
||||||
|
|
@ -40,7 +40,7 @@ describe('submit', () => {
|
||||||
fireEvent.input(getByPlaceholderText(t('auth.captcha')), {
|
fireEvent.input(getByPlaceholderText(t('auth.captcha')), {
|
||||||
target: { value: 'abc' },
|
target: { value: 'abc' },
|
||||||
})
|
})
|
||||||
fireEvent.click(getByText(t('auth.forgot.button')))
|
fireEvent.click(getByText(t('auth.send')))
|
||||||
await waitFor(() =>
|
await waitFor(() =>
|
||||||
expect(fetch.post).toBeCalledWith(urls.auth.forgot(), {
|
expect(fetch.post).toBeCalledWith(urls.auth.forgot(), {
|
||||||
email: 'a@b.c',
|
email: 'a@b.c',
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ test('confirmation is not matched', () => {
|
||||||
fireEvent.input(getByPlaceholderText(t('auth.captcha')), {
|
fireEvent.input(getByPlaceholderText(t('auth.captcha')), {
|
||||||
target: { value: 'a' },
|
target: { value: 'a' },
|
||||||
})
|
})
|
||||||
fireEvent.click(getByText(t('auth.register-button')))
|
fireEvent.click(getByText(t('auth.register')))
|
||||||
|
|
||||||
expect(queryByText(t('auth.invalidConfirmPwd'))).toBeInTheDocument()
|
expect(queryByText(t('auth.invalidConfirmPwd'))).toBeInTheDocument()
|
||||||
expect(fetch.post).not.toBeCalled()
|
expect(fetch.post).not.toBeCalled()
|
||||||
|
|
@ -58,7 +58,7 @@ test('succeeded', async () => {
|
||||||
fireEvent.input(getByPlaceholderText(t('auth.captcha')), {
|
fireEvent.input(getByPlaceholderText(t('auth.captcha')), {
|
||||||
target: { value: 'a' },
|
target: { value: 'a' },
|
||||||
})
|
})
|
||||||
fireEvent.click(getByText(t('auth.register-button')))
|
fireEvent.click(getByText(t('auth.register')))
|
||||||
await waitFor(() =>
|
await waitFor(() =>
|
||||||
expect(fetch.post).toBeCalledWith(urls.auth.register(), {
|
expect(fetch.post).toBeCalledWith(urls.auth.register(), {
|
||||||
email: 'a@b.c',
|
email: 'a@b.c',
|
||||||
|
|
@ -93,7 +93,7 @@ test('failed', async () => {
|
||||||
fireEvent.input(getByPlaceholderText(t('auth.captcha')), {
|
fireEvent.input(getByPlaceholderText(t('auth.captcha')), {
|
||||||
target: { value: 'a' },
|
target: { value: 'a' },
|
||||||
})
|
})
|
||||||
fireEvent.click(getByText(t('auth.register-button')))
|
fireEvent.click(getByText(t('auth.register')))
|
||||||
await waitFor(() =>
|
await waitFor(() =>
|
||||||
expect(fetch.post).toBeCalledWith(urls.auth.register(), {
|
expect(fetch.post).toBeCalledWith(urls.auth.register(), {
|
||||||
email: 'a@b.c',
|
email: 'a@b.c',
|
||||||
|
|
@ -127,7 +127,7 @@ test('register with new player', async () => {
|
||||||
fireEvent.input(getByPlaceholderText(t('auth.captcha')), {
|
fireEvent.input(getByPlaceholderText(t('auth.captcha')), {
|
||||||
target: { value: 'a' },
|
target: { value: 'a' },
|
||||||
})
|
})
|
||||||
fireEvent.click(getByText(t('auth.register-button')))
|
fireEvent.click(getByText(t('auth.register')))
|
||||||
await waitFor(() =>
|
await waitFor(() =>
|
||||||
expect(fetch.post).toBeCalledWith(urls.auth.register(), {
|
expect(fetch.post).toBeCalledWith(urls.auth.register(), {
|
||||||
email: 'a@b.c',
|
email: 'a@b.c',
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ test('confirmation is not matched', () => {
|
||||||
fireEvent.input(getByPlaceholderText(t('auth.repeat-pwd')), {
|
fireEvent.input(getByPlaceholderText(t('auth.repeat-pwd')), {
|
||||||
target: { value: 'password1' },
|
target: { value: 'password1' },
|
||||||
})
|
})
|
||||||
fireEvent.click(getByText(t('auth.reset-button')))
|
fireEvent.click(getByText(t('auth.reset')))
|
||||||
|
|
||||||
expect(queryByText(t('auth.invalidConfirmPwd'))).toBeInTheDocument()
|
expect(queryByText(t('auth.invalidConfirmPwd'))).toBeInTheDocument()
|
||||||
expect(fetch.post).not.toBeCalled()
|
expect(fetch.post).not.toBeCalled()
|
||||||
|
|
@ -33,7 +33,7 @@ test('succeeded', async () => {
|
||||||
fireEvent.input(getByPlaceholderText(t('auth.repeat-pwd')), {
|
fireEvent.input(getByPlaceholderText(t('auth.repeat-pwd')), {
|
||||||
target: { value: 'password' },
|
target: { value: 'password' },
|
||||||
})
|
})
|
||||||
fireEvent.click(getByText(t('auth.reset-button')))
|
fireEvent.click(getByText(t('auth.reset')))
|
||||||
await waitFor(() =>
|
await waitFor(() =>
|
||||||
expect(fetch.post).toBeCalledWith(
|
expect(fetch.post).toBeCalledWith(
|
||||||
location.href.replace(blessing.base_url, ''),
|
location.href.replace(blessing.base_url, ''),
|
||||||
|
|
@ -55,7 +55,7 @@ test('failed', async () => {
|
||||||
fireEvent.input(getByPlaceholderText(t('auth.repeat-pwd')), {
|
fireEvent.input(getByPlaceholderText(t('auth.repeat-pwd')), {
|
||||||
target: { value: 'password' },
|
target: { value: 'password' },
|
||||||
})
|
})
|
||||||
fireEvent.click(getByText(t('auth.reset-button')))
|
fireEvent.click(getByText(t('auth.reset')))
|
||||||
await waitFor(() =>
|
await waitFor(() =>
|
||||||
expect(fetch.post).toBeCalledWith(
|
expect(fetch.post).toBeCalledWith(
|
||||||
location.href.replace(blessing.base_url, ''),
|
location.href.replace(blessing.base_url, ''),
|
||||||
|
|
|
||||||
|
|
@ -26,17 +26,13 @@ auth:
|
||||||
repeat-pwd: Repeat your password
|
repeat-pwd: Repeat your password
|
||||||
nickname-intro: Whatever you like expect special characters
|
nickname-intro: Whatever you like expect special characters
|
||||||
player-name-intro: Player name in Minecraft, can be changed later
|
player-name-intro: Player name in Minecraft, can be changed later
|
||||||
register-button: Register
|
|
||||||
forgot:
|
forgot:
|
||||||
login-link: I do remember it
|
login-link: I do remember it
|
||||||
button: Send
|
|
||||||
reset-button: Reset
|
|
||||||
|
|
||||||
skinlib:
|
skinlib:
|
||||||
private: Private
|
private: Private
|
||||||
anonymous: Please login first.
|
anonymous: Please login first.
|
||||||
reset: Reset Filter
|
reset: Reset Filter
|
||||||
nowShowing: Now showing
|
|
||||||
addToCloset: Add to closet
|
addToCloset: Add to closet
|
||||||
removeFromCloset: Remove from closet
|
removeFromCloset: Remove from closet
|
||||||
setItemName: Set a name for this texture
|
setItemName: Set a name for this texture
|
||||||
|
|
@ -74,8 +70,6 @@ skinlib:
|
||||||
privacy-notice: Prevent it from being visible at skin library.
|
privacy-notice: Prevent it from being visible at skin library.
|
||||||
set-as-private: Make it Private
|
set-as-private: Make it Private
|
||||||
button: Upload
|
button: Upload
|
||||||
dropZone: Drop a file here
|
|
||||||
remove: Remove
|
|
||||||
cost: It costs you about :score score.
|
cost: It costs you about :score score.
|
||||||
award: You'll be awarded :score score(s) by uploading public texture.
|
award: You'll be awarded :score score(s) by uploading public texture.
|
||||||
show:
|
show:
|
||||||
|
|
@ -111,19 +105,16 @@ user:
|
||||||
switch2dPreview: Switch to 2D Preview
|
switch2dPreview: Switch to 2D Preview
|
||||||
switch3dPreview: Switch to 3D Preview
|
switch3dPreview: Switch to 3D Preview
|
||||||
removeFromClosetNotice: Sure to remove this texture from your closet?
|
removeFromClosetNotice: Sure to remove this texture from your closet?
|
||||||
emptySelectedPlayer: No player is selected.
|
|
||||||
emptySelectedTexture: No texture is selected.
|
emptySelectedTexture: No texture is selected.
|
||||||
renameClosetItem: 'Set a new name for this item:'
|
renameClosetItem: 'Set a new name for this item:'
|
||||||
changePlayerName: 'Please enter the player name:'
|
changePlayerName: 'Please enter the player name:'
|
||||||
emptyPlayerName: Empty player name.
|
emptyPlayerName: Empty player name.
|
||||||
clearTexture: Sure to clear the skins & cape of this player?
|
|
||||||
deletePlayer: Sure to delete this player?
|
deletePlayer: Sure to delete this player?
|
||||||
deletePlayerNotice: It's permanent. No backups.
|
deletePlayerNotice: It's permanent. No backups.
|
||||||
chooseClearTexture: Choose texture types you want to clear
|
chooseClearTexture: Choose texture types you want to clear
|
||||||
noClearChoice: You haven't choose any types
|
noClearChoice: You haven't choose any types
|
||||||
setAvatar: Sure to set this as your avatar?
|
setAvatar: Sure to set this as your avatar?
|
||||||
setAvatarNotice: The head segment of skin will bu used.
|
setAvatarNotice: The head segment of skin will bu used.
|
||||||
resetAvatar: Reset Avatar
|
|
||||||
resetAvatarConfirm: Are you sure to reset your avatar?
|
resetAvatarConfirm: Are you sure to reset your avatar?
|
||||||
typeToSearch: Type to search
|
typeToSearch: Type to search
|
||||||
useAs: Apply...
|
useAs: Apply...
|
||||||
|
|
@ -133,7 +124,6 @@ user:
|
||||||
use-as:
|
use-as:
|
||||||
title: Which player should be applied to?
|
title: Which player should be applied to?
|
||||||
empty: It seems that you own no player...
|
empty: It seems that you own no player...
|
||||||
add: Add new player
|
|
||||||
used:
|
used:
|
||||||
title: Resources Used
|
title: Resources Used
|
||||||
players: Registered players
|
players: Registered players
|
||||||
|
|
@ -141,19 +131,12 @@ user:
|
||||||
cur-score: Current Score
|
cur-score: Current Score
|
||||||
score-notice: Click the score to show introduction.
|
score-notice: Click the score to show introduction.
|
||||||
sign: Sign
|
sign: Sign
|
||||||
sign-success: Signed successfully. You got :score scores.
|
|
||||||
time-unit-hour: h
|
|
||||||
time-unit-min: min
|
|
||||||
last-sign: Last signed at :time
|
|
||||||
sign-remain-time: Available after :time :unit
|
|
||||||
player:
|
player:
|
||||||
edit: Edit
|
|
||||||
operation: Operations
|
operation: Operations
|
||||||
edit-pname: Edit Name
|
edit-pname: Edit Name
|
||||||
delete-texture: Clear Textures
|
delete-texture: Clear Textures
|
||||||
delete-player: Delete
|
delete-player: Delete
|
||||||
add-player: Add new player
|
add-player: Add new player
|
||||||
player-info: Information <small>(click player name to show preview)</small>
|
|
||||||
texture-empty: Nothing
|
texture-empty: Nothing
|
||||||
verification:
|
verification:
|
||||||
title: Verify Your Account
|
title: Verify Your Account
|
||||||
|
|
@ -173,10 +156,7 @@ user:
|
||||||
admin:
|
admin:
|
||||||
operationsTitle: Operations
|
operationsTitle: Operations
|
||||||
permission: Permission
|
permission: Permission
|
||||||
playersCount: Players Count
|
|
||||||
deleteUser: Delete
|
deleteUser: Delete
|
||||||
cannotDeleteAdmin: You can't delete admins.
|
|
||||||
cannotDeleteSuperAdmin: You can't delete super admin in this way
|
|
||||||
changeEmail: Edit Email
|
changeEmail: Edit Email
|
||||||
newUserEmail: 'Please enter the new email:'
|
newUserEmail: 'Please enter the new email:'
|
||||||
verification: Email Verification
|
verification: Email Verification
|
||||||
|
|
@ -190,8 +170,6 @@ admin:
|
||||||
changePermission: Change permission
|
changePermission: Change permission
|
||||||
newPermission: 'Please select new permission:'
|
newPermission: 'Please select new permission:'
|
||||||
deleteUserNotice: Are you sure to delete this user? It' permanent.
|
deleteUserNotice: Are you sure to delete this user? It' permanent.
|
||||||
inspectHisOwner: Click to inspect the owner of this player
|
|
||||||
inspectHisPlayers: Click to inspect the players he owns
|
|
||||||
banned: Banned
|
banned: Banned
|
||||||
normal: Normal
|
normal: Normal
|
||||||
admin: Admin
|
admin: Admin
|
||||||
|
|
@ -201,7 +179,6 @@ admin:
|
||||||
pidNotice: >-
|
pidNotice: >-
|
||||||
Please enter the tid of texture. Inputing 0 can clear texture of this
|
Please enter the tid of texture. Inputing 0 can clear texture of this
|
||||||
player.
|
player.
|
||||||
changePlayerTexture: 'Change textures of :player'
|
|
||||||
changeTexture: Change Textures
|
changeTexture: Change Textures
|
||||||
changePlayerName: Change Player Name
|
changePlayerName: Change Player Name
|
||||||
changeOwner: Change Owner
|
changeOwner: Change Owner
|
||||||
|
|
@ -209,21 +186,14 @@ admin:
|
||||||
deletePlayer: Delete
|
deletePlayer: Delete
|
||||||
changePlayerOwner: 'Please enter the id of user which this player should be transferred to:'
|
changePlayerOwner: 'Please enter the id of user which this player should be transferred to:'
|
||||||
deletePlayerNotice: Are you sure to delete this player? It' permanent.
|
deletePlayerNotice: Are you sure to delete this player? It' permanent.
|
||||||
targetUser: 'Target user is :nickname'
|
|
||||||
noSuchUser: No such user
|
|
||||||
changePlayerNameNotice: 'Please input new player name:'
|
changePlayerNameNotice: 'Please input new player name:'
|
||||||
emptyPlayerName: Player name cannot be empty.
|
emptyPlayerName: Player name cannot be empty.
|
||||||
configurePlugin: Configure
|
configurePlugin: Configure
|
||||||
noPluginConfigNotice: The plugin has been disabled or no configuration is provided.
|
|
||||||
deletePlugin: Delete
|
deletePlugin: Delete
|
||||||
noDependencies: No Dependencies
|
noDependencies: No Dependencies
|
||||||
whyDependencies: What's this?
|
|
||||||
statusEnabled: Enabled
|
|
||||||
statusDisabled: Disabled
|
|
||||||
pluginTitle: Plugin
|
pluginTitle: Plugin
|
||||||
pluginAuthor: Author
|
pluginAuthor: Author
|
||||||
pluginVersion: Version
|
pluginVersion: Version
|
||||||
pluginName: Name
|
|
||||||
pluginReadme: Read Me
|
pluginReadme: Read Me
|
||||||
pluginDescription: Description
|
pluginDescription: Description
|
||||||
pluginDependencies: Dependencies
|
pluginDependencies: Dependencies
|
||||||
|
|
@ -239,14 +209,8 @@ admin:
|
||||||
uploadArchiveNotice: Install a plugin by uploading a Zip archive.
|
uploadArchiveNotice: Install a plugin by uploading a Zip archive.
|
||||||
downloadRemote: Download From Remote
|
downloadRemote: Download From Remote
|
||||||
downloadRemoteNotice: Install a plugin by downloading a Zip archive from remote URL.
|
downloadRemoteNotice: Install a plugin by downloading a Zip archive from remote URL.
|
||||||
noDependenciesNotice: >-
|
|
||||||
There is no dependency definition in the plugin. It means that the plugin
|
|
||||||
may be not compatible with the current version of Blessing Skin, and
|
|
||||||
enabling it may cause unexpected problems. Do you really want to enable the
|
|
||||||
plugin?
|
|
||||||
updateButton: Update Now
|
updateButton: Update Now
|
||||||
downloading: Downloading...
|
downloading: Downloading...
|
||||||
updateCompleted: Update completed.
|
|
||||||
i18n:
|
i18n:
|
||||||
group: Group
|
group: Group
|
||||||
key: Key
|
key: Key
|
||||||
|
|
@ -261,13 +225,11 @@ report:
|
||||||
tid: Texture ID
|
tid: Texture ID
|
||||||
reporter: Reporter
|
reporter: Reporter
|
||||||
reason: Reason
|
reason: Reason
|
||||||
status-title: Status
|
|
||||||
status:
|
status:
|
||||||
- Pending
|
- Pending
|
||||||
- Resolved
|
- Resolved
|
||||||
- Rejected
|
- Rejected
|
||||||
time: Report Time
|
time: Report Time
|
||||||
check: Details
|
|
||||||
delete: Delete
|
delete: Delete
|
||||||
ban: Ban
|
ban: Ban
|
||||||
reject: Reject
|
reject: Reject
|
||||||
|
|
@ -283,8 +245,6 @@ general:
|
||||||
close: Close
|
close: Close
|
||||||
more: More
|
more: More
|
||||||
tip: Tip
|
tip: Tip
|
||||||
pagination: 'Page :page, total :total'
|
|
||||||
searchResult: '(Search result of keyword ":keyword")'
|
|
||||||
noResult: No result.
|
noResult: No result.
|
||||||
texturePreview: Texture Preview
|
texturePreview: Texture Preview
|
||||||
walk: Walk
|
walk: Walk
|
||||||
|
|
@ -293,7 +253,6 @@ general:
|
||||||
pause: Pause
|
pause: Pause
|
||||||
reset: Reset
|
reset: Reset
|
||||||
skinlib: Skin Library
|
skinlib: Skin Library
|
||||||
loading: Loading
|
|
||||||
wait: Please wait...
|
wait: Please wait...
|
||||||
csrf: This page is out-dated. Please refresh it.
|
csrf: This page is out-dated. Please refresh it.
|
||||||
user:
|
user:
|
||||||
|
|
@ -317,8 +276,5 @@ colors:
|
||||||
vendor:
|
vendor:
|
||||||
datatable:
|
datatable:
|
||||||
search: Search
|
search: Search
|
||||||
rowsPerPage: Rows per page
|
|
||||||
prev: Prev
|
prev: Prev
|
||||||
next: Next
|
next: Next
|
||||||
of: of
|
|
||||||
all: All
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user