Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add some translations for artist table index
- Loading branch information
1 parent
09e9162
commit 49883d0
Showing
4 changed files
with
47 additions
and
32 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
19 changes: 0 additions & 19 deletions
19
frontend/src/Components/Filter/Builder/MonitorNewItemsFilterBuilderRowValue.js
This file was deleted.
Oops, something went wrong.
33 changes: 33 additions & 0 deletions
33
frontend/src/Components/Filter/Builder/MonitorNewItemsFilterBuilderRowValue.tsx
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,33 @@ | ||
import React from 'react'; | ||
import FilterBuilderRowValueProps from 'Components/Filter/Builder/FilterBuilderRowValueProps'; | ||
import translate from 'Utilities/String/translate'; | ||
import FilterBuilderRowValue from './FilterBuilderRowValue'; | ||
|
||
const options = [ | ||
{ | ||
id: 'all', | ||
get name() { | ||
return translate('AllAlbums'); | ||
}, | ||
}, | ||
{ | ||
id: 'new', | ||
get name() { | ||
return translate('New'); | ||
}, | ||
}, | ||
{ | ||
id: 'none', | ||
get name() { | ||
return translate('None'); | ||
}, | ||
}, | ||
]; | ||
|
||
function MonitorNewItemsFilterBuilderRowValue( | ||
props: FilterBuilderRowValueProps | ||
) { | ||
return <FilterBuilderRowValue tagList={options} {...props} />; | ||
} | ||
|
||
export default MonitorNewItemsFilterBuilderRowValue; |
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,9 @@ | ||
function firstCharToUpper(input) { | ||
if (!input) { | ||
return ''; | ||
} | ||
|
||
return [].map.call(input, (char, i) => (i ? char : char.toUpperCase())).join(''); | ||
} | ||
|
||
export default firstCharToUpper; |