Localize options in "Thread Preferences" screen (#2373)

zio/stable
Noritada Kobayashi 2023-12-30 02:15:13 +09:00 committed by GitHub
parent 1f037a0b43
commit 4e9e92f976
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 6 deletions

View File

@ -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({