1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Update translations

This commit is contained in:
Zhiyuan Zheng
2021-01-19 01:13:45 +01:00
parent 5c4f7ce8c7
commit 5a248716bf
79 changed files with 948 additions and 541 deletions

View File

@ -7,6 +7,7 @@ import layoutAnimation from '@utils/styles/layoutAnimation'
import { useTheme } from '@utils/styles/ThemeManager'
import { LinearGradient } from 'expo-linear-gradient'
import React, { useCallback, useState } from 'react'
import { useTranslation } from 'react-i18next'
import { Pressable, Text, View } from 'react-native'
import HTMLView from 'react-native-htmlview'
@ -191,6 +192,7 @@ const ParseHTML: React.FC<Props> = ({
}, [])
const rootComponent = useCallback(
({ children }) => {
const { t } = useTranslation('componentParse')
const lineHeight = StyleConstants.Font.LineHeight[size]
const [expandAllow, setExpandAllow] = useState(false)
@ -249,7 +251,9 @@ const ParseHTML: React.FC<Props> = ({
color: theme.primary
}}
>
{`${expanded ? '折叠' : '展开'}${expandHint}`}
{expanded
? t('HTML.expanded.true', { hint: expandHint })
: t('HTML.expanded.false', { hint: expandHint })}
</Text>
</LinearGradient>
</Pressable>