Internationalize more strings (#2440)
Co-authored-by: Ansh <anshnanda10@gmail.com>
This commit is contained in:
parent
aeeacd10d3
commit
008893b911
108 changed files with 925 additions and 558 deletions
|
@ -16,6 +16,8 @@ import {ToggleButton} from '../com/util/forms/ToggleButton'
|
|||
import {RadioGroup} from '../com/util/forms/RadioGroup'
|
||||
import {ErrorScreen} from '../com/util/error/ErrorScreen'
|
||||
import {ErrorMessage} from '../com/util/error/ErrorMessage'
|
||||
import {msg} from '@lingui/macro'
|
||||
import {useLingui} from '@lingui/react'
|
||||
|
||||
const MAIN_VIEWS = ['Base', 'Controls', 'Error', 'Notifs']
|
||||
|
||||
|
@ -48,6 +50,7 @@ function DebugInner({
|
|||
}) {
|
||||
const [currentView, setCurrentView] = React.useState<number>(0)
|
||||
const pal = usePalette('default')
|
||||
const {_} = useLingui()
|
||||
|
||||
const renderItem = (item: any) => {
|
||||
return (
|
||||
|
@ -57,7 +60,7 @@ function DebugInner({
|
|||
type="default-light"
|
||||
onPress={onToggleColorScheme}
|
||||
isSelected={colorScheme === 'dark'}
|
||||
label="Dark mode"
|
||||
label={_(msg`Dark mode`)}
|
||||
/>
|
||||
</View>
|
||||
{item.currentView === 3 ? (
|
||||
|
@ -77,7 +80,7 @@ function DebugInner({
|
|||
|
||||
return (
|
||||
<View style={[s.hContentRegion, pal.view]}>
|
||||
<ViewHeader title="Debug panel" />
|
||||
<ViewHeader title={_(msg`Debug panel`)} />
|
||||
<ViewSelector
|
||||
swipeEnabled
|
||||
sections={MAIN_VIEWS}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue