Internationalize remaining TODO-marked UI text in Expo app
This commit is contained in:
@@ -6,6 +6,7 @@ import ProfileCardHorizontal from "../components/ProfileCardHorizontal";
|
||||
import { useSnapshot } from 'valtio';
|
||||
import GlobalState from '../contexts/GlobalState.js';
|
||||
import ProfileHeader from "../components/ProfileHeader";
|
||||
import i18n from "../i18nMessages.js";
|
||||
|
||||
const Search = () => {
|
||||
const viewer = useSnapshot(GlobalState).me;
|
||||
@@ -47,7 +48,7 @@ const Search = () => {
|
||||
return (
|
||||
<SafeAreaView style={{ flex: 1, backgroundColor: "#edf2f7", }}>
|
||||
<Searchbar
|
||||
placeholder="Search Users"
|
||||
placeholder={i18n.t("message.searchUsers")}
|
||||
onChangeText={onChangeSearch}
|
||||
value={searchQuery}
|
||||
/>
|
||||
@@ -66,7 +67,7 @@ const Search = () => {
|
||||
data={followers}
|
||||
renderItem={renderFollowing}
|
||||
keyExtractor={item => item}
|
||||
ListHeaderComponent={<Text style={{fontSize:20, padding:10, alignSelf: "center"}}>Recently Following</Text>}
|
||||
ListHeaderComponent={<Text style={{fontSize:20, padding:10, alignSelf: "center"}}>{i18n.t("message.recentlyFollowing")}</Text>}
|
||||
/>
|
||||
}
|
||||
</SafeAreaView>
|
||||
|
||||
Reference in New Issue
Block a user