Localize options in "Thread Preferences" screen (#2373)
parent
1f037a0b43
commit
4e9e92f976
|
@ -75,10 +75,16 @@ export function PreferencesThreads({navigation}: Props) {
|
||||||
<RadioGroup
|
<RadioGroup
|
||||||
type="default-light"
|
type="default-light"
|
||||||
items={[
|
items={[
|
||||||
{key: 'oldest', label: 'Oldest replies first'},
|
{key: 'oldest', label: _(msg`Oldest replies first`)},
|
||||||
{key: 'newest', label: 'Newest replies first'},
|
{key: 'newest', label: _(msg`Newest replies first`)},
|
||||||
{key: 'most-likes', label: 'Most-liked replies first'},
|
{
|
||||||
{key: 'random', label: 'Random (aka "Poster\'s Roulette")'},
|
key: 'most-likes',
|
||||||
|
label: _(msg`Most-liked replies first`),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 'random',
|
||||||
|
label: _(msg`Random (aka "Poster's Roulette")`),
|
||||||
|
},
|
||||||
]}
|
]}
|
||||||
onSelect={key => setThreadViewPrefs({sort: key})}
|
onSelect={key => setThreadViewPrefs({sort: key})}
|
||||||
initialSelection={preferences?.threadViewPrefs?.sort}
|
initialSelection={preferences?.threadViewPrefs?.sort}
|
||||||
|
@ -97,7 +103,7 @@ export function PreferencesThreads({navigation}: Props) {
|
||||||
</Text>
|
</Text>
|
||||||
<ToggleButton
|
<ToggleButton
|
||||||
type="default-light"
|
type="default-light"
|
||||||
label={prioritizeFollowedUsers ? 'Yes' : 'No'}
|
label={prioritizeFollowedUsers ? _(msg`Yes`) : _(msg`No`)}
|
||||||
isSelected={prioritizeFollowedUsers}
|
isSelected={prioritizeFollowedUsers}
|
||||||
onPress={() =>
|
onPress={() =>
|
||||||
setThreadViewPrefs({
|
setThreadViewPrefs({
|
||||||
|
@ -120,7 +126,7 @@ export function PreferencesThreads({navigation}: Props) {
|
||||||
</Text>
|
</Text>
|
||||||
<ToggleButton
|
<ToggleButton
|
||||||
type="default-light"
|
type="default-light"
|
||||||
label={treeViewEnabled ? 'Yes' : 'No'}
|
label={treeViewEnabled ? _(msg`Yes`) : _(msg`No`)}
|
||||||
isSelected={treeViewEnabled}
|
isSelected={treeViewEnabled}
|
||||||
onPress={() =>
|
onPress={() =>
|
||||||
setThreadViewPrefs({
|
setThreadViewPrefs({
|
||||||
|
|
Loading…
Reference in New Issue