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
type="default-light"
items={[
{key: 'oldest', label: 'Oldest replies first'},
{key: 'newest', label: 'Newest replies first'},
{key: 'most-likes', label: 'Most-liked replies first'},
{key: 'random', label: 'Random (aka "Poster\'s Roulette")'},
{key: 'oldest', label: _(msg`Oldest replies first`)},
{key: 'newest', label: _(msg`Newest replies first`)},
{
key: 'most-likes',
label: _(msg`Most-liked replies first`),
},
{
key: 'random',
label: _(msg`Random (aka "Poster's Roulette")`),
},
]}
onSelect={key => setThreadViewPrefs({sort: key})}
initialSelection={preferences?.threadViewPrefs?.sort}
@ -97,7 +103,7 @@ export function PreferencesThreads({navigation}: Props) {
</Text>
<ToggleButton
type="default-light"
label={prioritizeFollowedUsers ? 'Yes' : 'No'}
label={prioritizeFollowedUsers ? _(msg`Yes`) : _(msg`No`)}
isSelected={prioritizeFollowedUsers}
onPress={() =>
setThreadViewPrefs({
@ -120,7 +126,7 @@ export function PreferencesThreads({navigation}: Props) {
</Text>
<ToggleButton
type="default-light"
label={treeViewEnabled ? 'Yes' : 'No'}
label={treeViewEnabled ? _(msg`Yes`) : _(msg`No`)}
isSelected={treeViewEnabled}
onPress={() =>
setThreadViewPrefs({