diff options
Diffstat (limited to 'src/view/com/modals/report')
-rw-r--r-- | src/view/com/modals/report/InputIssueDetails.tsx | 6 | ||||
-rw-r--r-- | src/view/com/modals/report/Modal.tsx | 7 |
2 files changed, 8 insertions, 5 deletions
diff --git a/src/view/com/modals/report/InputIssueDetails.tsx b/src/view/com/modals/report/InputIssueDetails.tsx index 2bc86f75e..0ebb25ce5 100644 --- a/src/view/com/modals/report/InputIssueDetails.tsx +++ b/src/view/com/modals/report/InputIssueDetails.tsx @@ -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} diff --git a/src/view/com/modals/report/Modal.tsx b/src/view/com/modals/report/Modal.tsx index abbad9b40..236f32737 100644 --- a/src/view/com/modals/report/Modal.tsx +++ b/src/view/com/modals/report/Modal.tsx @@ -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> |