Skip to content

Commit

Permalink
added translations
Browse files Browse the repository at this point in the history
  • Loading branch information
desperado1802 committed Nov 30, 2023
1 parent a3d6d34 commit 69a79ad
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 7 deletions.
3 changes: 3 additions & 0 deletions apps/mobile/app/i18n/ar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
3 changes: 3 additions & 0 deletions apps/mobile/app/i18n/bg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
3 changes: 3 additions & 0 deletions apps/mobile/app/i18n/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
3 changes: 3 additions & 0 deletions apps/mobile/app/i18n/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
3 changes: 3 additions & 0 deletions apps/mobile/app/i18n/fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
3 changes: 3 additions & 0 deletions apps/mobile/app/i18n/he.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
3 changes: 3 additions & 0 deletions apps/mobile/app/i18n/ko.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
3 changes: 3 additions & 0 deletions apps/mobile/app/i18n/ru.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand All @@ -29,12 +28,13 @@ const SwitchTeamPublicity: FC<Props> = observer(() => {
return (
<View style={styles.container}>
<View style={styles.wrapperInfo}>
<Text style={[styles.infoTitle, { color: colors.primary }]}>Team Type</Text>
<Text style={[styles.infoTitle, { color: colors.primary }]}>
{translate('settingScreen.teamSection.teamType')}
</Text>
<Text style={[styles.infoText, { color: colors.tertiary }]}>
{limitTextCharaters({
text: isTeamPublic ? 'Public Team' : 'Private Team',
numChars: 77
})}
{isTeamPublic
? translate('settingScreen.teamSection.publicTeam')
: translate('settingScreen.teamSection.privateTeam')}
</Text>
</View>
<Toggle
Expand Down

0 comments on commit 69a79ad

Please sign in to comment.