Internationalize remaining TODO-marked UI text in Expo app
This commit is contained in:
@@ -4,6 +4,7 @@ import { TextInput, Button } from 'react-native-paper';
|
||||
import API from './../API.js';
|
||||
import { useNavigation } from '@react-navigation/native';
|
||||
import AwesomeIcon from 'react-native-vector-icons/FontAwesome';
|
||||
import i18n from "../i18nMessages.js";
|
||||
|
||||
|
||||
let NewComment = ({ postid, newComentAdded }) => {
|
||||
@@ -13,7 +14,7 @@ let NewComment = ({ postid, newComentAdded }) => {
|
||||
return (
|
||||
<View style={styles.NewComment}>
|
||||
<TextInput
|
||||
label="New Comment"
|
||||
label={i18n.t("message.newComment")}
|
||||
value={commentContent}
|
||||
onChangeText={setCommentContent}
|
||||
mode="outlined"
|
||||
@@ -55,4 +56,4 @@ const styles = StyleSheet.create({
|
||||
flexDirection: "row",
|
||||
flex: 6
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user