From 69a79ad402973899e200d0c0eb784c33fd6e1072 Mon Sep 17 00:00:00 2001 From: desperado1802 Date: Thu, 30 Nov 2023 18:26:07 +0200 Subject: [PATCH] added translations --- apps/mobile/app/i18n/ar.ts | 3 +++ apps/mobile/app/i18n/bg.ts | 3 +++ apps/mobile/app/i18n/en.ts | 3 +++ apps/mobile/app/i18n/es.ts | 3 +++ apps/mobile/app/i18n/fr.ts | 3 +++ apps/mobile/app/i18n/he.ts | 3 +++ apps/mobile/app/i18n/ko.ts | 3 +++ apps/mobile/app/i18n/ru.ts | 3 +++ .../components/SwitchTeamPublicity.tsx | 14 +++++++------- 9 files changed, 31 insertions(+), 7 deletions(-) diff --git a/apps/mobile/app/i18n/ar.ts b/apps/mobile/app/i18n/ar.ts index 4212964c8..dd8af8ffd 100644 --- a/apps/mobile/app/i18n/ar.ts +++ b/apps/mobile/app/i18n/ar.ts @@ -209,6 +209,9 @@ const ar: Translations = { quitTeam: 'Quit the team', quitTeamHint: 'You are about to quit the team', areYouSure: 'Are you sure ?', + teamType: 'نوع الفريق', + publicTeam: 'الفريق العام', + privateTeam: 'الفريق الخاص', changeTeamName: { mainTitle: 'Change Team Name', inputPlaceholder: 'Team Name' diff --git a/apps/mobile/app/i18n/bg.ts b/apps/mobile/app/i18n/bg.ts index b8d93072f..0ac211f5f 100644 --- a/apps/mobile/app/i18n/bg.ts +++ b/apps/mobile/app/i18n/bg.ts @@ -205,6 +205,9 @@ const bg = { quitTeam: 'Quit the team', quitTeamHint: 'You are about to quit the team', areYouSure: 'Are you sure ?', + teamType: 'Team Type', + publicTeam: 'Public Team', + privateTeam: 'Private Team', changeTeamName: { mainTitle: 'Change Team Name', inputPlaceholder: 'Team Name' diff --git a/apps/mobile/app/i18n/en.ts b/apps/mobile/app/i18n/en.ts index b7259de17..bc981387d 100644 --- a/apps/mobile/app/i18n/en.ts +++ b/apps/mobile/app/i18n/en.ts @@ -206,6 +206,9 @@ const en = { quitTeam: 'Quit the team', quitTeamHint: 'You are about to quit the team', areYouSure: 'Are you sure ?', + teamType: 'Team Type', + publicTeam: 'Public Team', + privateTeam: 'Private Team', changeTeamName: { mainTitle: 'Change Team Name', inputPlaceholder: 'Team Name' diff --git a/apps/mobile/app/i18n/es.ts b/apps/mobile/app/i18n/es.ts index 697bed3c5..2e89dbb06 100644 --- a/apps/mobile/app/i18n/es.ts +++ b/apps/mobile/app/i18n/es.ts @@ -205,6 +205,9 @@ const es = { quitTeam: 'Quit the team', quitTeamHint: 'You are about to quit the team', areYouSure: 'Are you sure ?', + teamType: 'Team Type', + publicTeam: 'Public Team', + privateTeam: 'Private Team', changeTeamName: { mainTitle: 'Change Team Name', inputPlaceholder: 'Team Name' diff --git a/apps/mobile/app/i18n/fr.ts b/apps/mobile/app/i18n/fr.ts index c9fd40bf4..052ba2fca 100644 --- a/apps/mobile/app/i18n/fr.ts +++ b/apps/mobile/app/i18n/fr.ts @@ -204,6 +204,9 @@ const fr = { quitTeam: "Quitter l'équipe", quitTeamHint: "Vous êtes sur le point de quitter l'équipe", areYouSure: 'Etes-vous sûr ?', + teamType: "Type d'équipe", + publicTeam: 'Équipe publique', + privateTeam: 'Équipe privée', changeTeamName: { mainTitle: 'Change Team Name', inputPlaceholder: 'Team Name' diff --git a/apps/mobile/app/i18n/he.ts b/apps/mobile/app/i18n/he.ts index 78af3d406..1635bd3d1 100644 --- a/apps/mobile/app/i18n/he.ts +++ b/apps/mobile/app/i18n/he.ts @@ -205,6 +205,9 @@ const he = { quitTeam: 'Quit the team', quitTeamHint: 'You are about to quit the team', areYouSure: 'Are you sure ?', + teamType: 'Team Type', + publicTeam: 'Public Team', + privateTeam: 'Private Team', changeTeamName: { mainTitle: 'Change Team Name', inputPlaceholder: 'Team Name' diff --git a/apps/mobile/app/i18n/ko.ts b/apps/mobile/app/i18n/ko.ts index bc03d3f2d..c12eef360 100644 --- a/apps/mobile/app/i18n/ko.ts +++ b/apps/mobile/app/i18n/ko.ts @@ -208,6 +208,9 @@ const ko: Translations = { quitTeam: 'Quit the team', quitTeamHint: 'You are about to quit the team', areYouSure: 'Are you sure ?', + teamType: '팀 타입', + publicTeam: '공개 팀', + privateTeam: '비공개 팀', changeTeamName: { mainTitle: 'Change Team Name', inputPlaceholder: 'Team Name' diff --git a/apps/mobile/app/i18n/ru.ts b/apps/mobile/app/i18n/ru.ts index c7b49b88d..fc6186ed9 100644 --- a/apps/mobile/app/i18n/ru.ts +++ b/apps/mobile/app/i18n/ru.ts @@ -205,6 +205,9 @@ const ru = { quitTeam: 'Quit the team', quitTeamHint: 'You are about to quit the team', areYouSure: 'Are you sure ?', + teamType: 'Team Type', + publicTeam: 'Public Team', + privateTeam: 'Private Team', changeTeamName: { mainTitle: 'Change Team Name', inputPlaceholder: 'Team Name' diff --git a/apps/mobile/app/screens/Authenticated/SettingScreen/components/SwitchTeamPublicity.tsx b/apps/mobile/app/screens/Authenticated/SettingScreen/components/SwitchTeamPublicity.tsx index 4d8266da5..a7d72f95f 100644 --- a/apps/mobile/app/screens/Authenticated/SettingScreen/components/SwitchTeamPublicity.tsx +++ b/apps/mobile/app/screens/Authenticated/SettingScreen/components/SwitchTeamPublicity.tsx @@ -4,8 +4,7 @@ import React, { FC, useCallback, useEffect, useState } from 'react'; import { View, Text, StyleSheet } from 'react-native'; import { observer } from 'mobx-react-lite'; import { useOrganizationTeam } from '../../../../services/hooks/useOrganization'; -// import { translate } from '../../../../i18n'; -import { limitTextCharaters } from '../../../../helpers/sub-text'; +import { translate } from '../../../../i18n'; import { Toggle } from '../../../../components/Toggle'; import { typography, useAppTheme } from '../../../../theme'; @@ -29,12 +28,13 @@ const SwitchTeamPublicity: FC = observer(() => { return ( - Team Type + + {translate('settingScreen.teamSection.teamType')} + - {limitTextCharaters({ - text: isTeamPublic ? 'Public Team' : 'Private Team', - numChars: 77 - })} + {isTeamPublic + ? translate('settingScreen.teamSection.publicTeam') + : translate('settingScreen.teamSection.privateTeam')}