Mark more texts for localization

This commit is contained in:
Minseo Lee 2024-02-14 11:06:37 +09:00
parent 836cff306e
commit 3f5bdd8be3
27 changed files with 127 additions and 93 deletions

View file

@ -39,7 +39,7 @@ export function InputIssueDetails({
onPress={goBack}
accessibilityRole="button"
accessibilityLabel={_(msg`Add details`)}
accessibilityHint="Add more details to your report">
accessibilityHint={_(msg`Add more details to your report`)}>
<FontAwesomeIcon size={18} icon="angle-left" style={[pal.link]} />
<Text style={[pal.text, s.f18, pal.link]}>
{' '}
@ -49,8 +49,8 @@ export function InputIssueDetails({
<View style={[pal.btn, styles.detailsInputContainer]}>
<TextInput
accessibilityLabel={_(msg`Text input field`)}
accessibilityHint="Enter a reason for reporting this post."
placeholder="Enter a reason or any other details here."
accessibilityHint={_(msg`Enter a reason for reporting this post.`)}
placeholder={_(msg`Enter a reason or any other details here.`)}
placeholderTextColor={pal.textLight.color}
value={details}
onChangeText={setDetails}

View file

@ -41,6 +41,7 @@ type ReportComponentProps =
export function Component(content: ReportComponentProps) {
const {closeModal} = useModalControls()
const pal = usePalette('default')
const {_} = useLingui()
const {isMobile} = useWebMediaQueries()
const [isProcessing, setIsProcessing] = useState(false)
const [showDetailsInput, setShowDetailsInput] = useState(false)
@ -77,7 +78,9 @@ export function Component(content: ReportComponentProps) {
},
reason: details,
})
Toast.show("Thank you for your report! We'll look into it promptly.")
Toast.show(
_(msg`Thank you for your report! We'll look into it promptly.`),
)
closeModal()
return
@ -189,7 +192,7 @@ const SelectIssue = ({
onPress={goToDetails}
accessibilityRole="button"
accessibilityLabel={_(msg`Add details`)}
accessibilityHint="Add more details to your report">
accessibilityHint={_(msg`Add more details to your report`)}>
<Text style={[s.f18, pal.link]}>
<Trans>Add details to report</Trans>
</Text>