Start localization without auto detecting

This commit is contained in:
Adolfo Reyna
2022-12-19 21:48:31 -05:00
parent 923bbabd3a
commit 2e55d41adf
8 changed files with 249 additions and 67 deletions
+2 -1
View File
@@ -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>