Start localization without auto detecting
This commit is contained in:
@@ -5,6 +5,7 @@ import API from './../API.js';
|
||||
import { useNavigation } from '@react-navigation/native';
|
||||
import * as ImagePicker from 'expo-image-picker';
|
||||
import Media from './Media.js';
|
||||
import i18n from "../i18nMessages.js";
|
||||
|
||||
|
||||
let NewPost = ({ profileid, newPostCB }) => {
|
||||
|
||||
@@ -10,6 +10,7 @@ import NewComment from './NewComment.js';
|
||||
import Moment from 'moment';
|
||||
import { useSnapshot } from 'valtio';
|
||||
import GlobalState from '../contexts/GlobalState.js';
|
||||
import i18n from "../i18nMessages.js";
|
||||
|
||||
let Post = (props) => {
|
||||
const gState = useSnapshot(GlobalState);
|
||||
@@ -72,7 +73,7 @@ let Post = (props) => {
|
||||
<Media content={post.content} postId={post._id} />
|
||||
</View> :
|
||||
<View>
|
||||
<Chip icon="new-releases" style={{ width: 100 }} >News</Chip>
|
||||
<Chip icon="new-releases" style={{ width: 100 }} >{i18n.t("message.news")}</Chip>
|
||||
<Text style={{ fontSize: 18 }}>{cleanContent}</Text>
|
||||
<Media content={post.content} />
|
||||
</View>
|
||||
|
||||
@@ -3,6 +3,7 @@ import { Button } from 'react-native-paper';
|
||||
import API from './../../API.js';
|
||||
import { useSnapshot } from 'valtio';
|
||||
import GlobalState from '../../contexts/GlobalState.js';
|
||||
import i18n from "../../i18nMessages.js";
|
||||
|
||||
const followProfile = async (profileid, me, setFollowing, setPending) => {
|
||||
// Simulates the changes on the DB to speed up the UI
|
||||
@@ -55,8 +56,8 @@ let FollowButton = ({ profile }) => {
|
||||
|
||||
|
||||
const type = profile._id ? (!profile.isGroup ? "User" : (profile.isCourse ? "Course" : "Group")) : "User";
|
||||
const action = type === 'User' ? (following ? "Unfollow" : "Follow") :
|
||||
(following ? "Unsubscribe" : (pending ? "Pending" : "Subscribe"));
|
||||
const action = type === 'User' ? (following ? i18n.t("message.unfollow") : i18n.t("message.follow")) :
|
||||
(following ? i18n.t("message.unsubscribe") : (pending ? i18n.t("message.pending") : i18n.t("message.subscribe")));
|
||||
|
||||
|
||||
const toggleFollowThisProfile = () => {
|
||||
|
||||
Reference in New Issue
Block a user