Skip to content

Commit

Permalink
Add missing translation terms
Browse files Browse the repository at this point in the history
  • Loading branch information
deluan committed May 5, 2020
1 parent 8d99c3a commit 2f4d4c6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
12 changes: 8 additions & 4 deletions ui/src/i18n/en.json
Expand Up @@ -16,6 +16,7 @@
"compilation": "Compilation",
"year": "Year",
"size": "File size",
"bitRate": "Bit rate",
"updatedAt": "Uploaded at"
},
"actions": {
Expand All @@ -34,7 +35,8 @@
"name": "Name",
"genre": "Genre",
"compilation": "Compilation",
"year": "Year"
"year": "Year",
"updatedAt":"Updated at"
},
"actions": {
"playAll": "Play",
Expand All @@ -54,10 +56,12 @@
"name": "User |||| Users",
"fields": {
"userName": "Username",
"name": "Name",
"password": "Password",
"isAdmin": "Is Admin",
"lastLoginAt": "Last Login At",
"updatedAt": "Updated At",
"name": "Name"
"updatedAt": "Updated at",
"createdAt": "Created at"
}
},
"player": {
Expand Down Expand Up @@ -253,4 +257,4 @@
"shufflePlay": "Shuffle"
}
}
}
}
2 changes: 1 addition & 1 deletion ui/src/player/PlayerEdit.js
Expand Up @@ -42,7 +42,7 @@ const PlayerEdit = (props) => (
{ id: 192, name: '192' },
{ id: 256, name: '256' },
{ id: 320, name: '320' },
{ id: 0, name: 'Unlimited' },
{ id: 0, name: '-' },
]}
/>
<TextField source="client" />
Expand Down
4 changes: 2 additions & 2 deletions ui/src/player/PlayerList.js
Expand Up @@ -24,7 +24,7 @@ const PlayerList = (props) => {
<SimpleList
primaryText={(r) => r.client}
secondaryText={(r) => r.userName}
tertiaryText={(r) => (r.maxBitRate ? r.maxBitRate : 'Unlimited')}
tertiaryText={(r) => (r.maxBitRate ? r.maxBitRate : '-')}
/>
) : (
<Datagrid rowClick="edit">
Expand All @@ -34,7 +34,7 @@ const PlayerList = (props) => {
</ReferenceField>
<FunctionField
source="maxBitRate"
render={(r) => (r.maxBitRate ? r.maxBitRate : 'Unlimited')}
render={(r) => (r.maxBitRate ? r.maxBitRate : '-')}
/>
<DateField source="lastSeen" showTime />
</Datagrid>
Expand Down

0 comments on commit 2f4d4c6

Please sign in to comment.