Как я это сделал? отобразил мой текст?
Я прилагаю пример, как это сделать:
в Src/localization/global_es.json
Код: Выделить всё
{
"closeSegment": "Concluir segmento",
}
Код: Выделить всё
handleSubmit()}
colorText={'black'}
title={t('segmentScreen.closeSegment')}
/>
Код: Выделить всё
const BtnGradient = ({
onPress,
colorText,
title,
disabled,
widthValue = 0.95,
}: BtnProps) => {
const auth = useSelector((state: RootState) => state.auth);
return (
{title}
);
};
export default BtnGradient;
const Container = styled.View`
width: ${(props: {widthValue: number}) =>
SCREEN_WIDTH * props.widthValue}px;
justify-content: center;
align-items: center;
border-radius: ${normalize(10)}px;
margin: ${normalize(5)}px;
//box-shadow: 1px 3px 3px rgba(0, 0, 0, 0.25);
`;
const Title = styled.Text`
color: ${(props: {color: string}) => props.color};
font-size: ${normalize(16)}px;
`;
Отобразить весь текст «Concluir сегменто»
полученный результат:< /strong>

Библиотеки:
"react-i18next": "^13.5.0",
"i18next": "^23.7.9",
"реагировать": "18.2.0",
"реагировать- i18next": "^13.5.0",
"react-native": "0.71.8",
Подробнее здесь: https://stackoverflow.com/questions/781 ... hen-render
Мобильная версия