Skip to content

Commit

Permalink
added translations
Browse files Browse the repository at this point in the history
  • Loading branch information
desperado1802 committed Nov 7, 2023
1 parent b810112 commit b264a04
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 4 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 @@ -264,6 +264,9 @@ const ar: Translations = {
},
membersSettingsScreen: {
mainTitle: "الأعضاء والأدوار",
deleteUserConfirmation: "هل أنت متأكد من رغبتك في إزالة المستخدم المحدد؟",
changeRole: "تغيير الدور",
delete: "حذف",
},
changeFullName: {
firstNamePlaceholder: "First 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 @@ -257,6 +257,9 @@ const bg = {
},
membersSettingsScreen: {
mainTitle: "Members & Roles",
deleteUserConfirmation: "Are you sure you want to remove selected user?",
changeRole: "Change Role",
delete: "Delete",
},
changeFullName: {
firstNamePlaceholder: "First 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 @@ -261,6 +261,9 @@ const en = {
},
membersSettingsScreen: {
mainTitle: "Members & Roles",
deleteUserConfirmation: "Are you sure you want to remove selected user?",
changeRole: "Change Role",
delete: "Delete",
},
changeFullName: {
firstNamePlaceholder: "First 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 @@ -257,6 +257,9 @@ const es = {
},
membersSettingsScreen: {
mainTitle: "Members & Roles",
deleteUserConfirmation: "Are you sure you want to remove selected user?",
changeRole: "Change Role",
delete: "Delete",
},
changeFullName: {
firstNamePlaceholder: "First 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 @@ -262,6 +262,9 @@ const fr = {
},
membersSettingsScreen: {
mainTitle: "Membres et rôles",
deleteUserConfirmation: "Êtes-vous sûr de vouloir supprimer l'utilisateur sélectionné?",
changeRole: "Changer le rôle",
delete: "Supprimer",
},
changeAvatar: {
recentPictures: "Photos récentes",
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 @@ -257,6 +257,9 @@ const he = {
},
membersSettingsScreen: {
mainTitle: "Members & Roles",
deleteUserConfirmation: "Are you sure you want to remove selected user?",
changeRole: "Change Role",
delete: "Delete",
},
changeFullName: {
firstNamePlaceholder: "First 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 @@ -263,6 +263,9 @@ const ko: Translations = {
},
membersSettingsScreen: {
mainTitle: "Members & Roles",
deleteUserConfirmation: "선택한 사용자를 삭제하시겠습니까?",
changeRole: "역할 변경",
delete: "삭제",
},
changeFullName: {
firstNamePlaceholder: "First 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 @@ -257,6 +257,9 @@ const ru = {
},
membersSettingsScreen: {
mainTitle: "Members & Roles",
deleteUserConfirmation: "Are you sure you want to remove selected user?",
changeRole: "Change Role",
delete: "Delete",
},
changeFullName: {
firstNamePlaceholder: "First Name",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,9 @@ const MenuDropdown: React.FC<IMenuDropdown> = ({
setShowDropdownMenu(false)
reset()
}}
confirmationText="Are you sure you want to remove selected user?"
confirmationText={translate(
"settingScreen.membersSettingsScreen.deleteUserConfirmation",
)}
/>
{selectedMembers.length === 1 && (
<View
Expand All @@ -185,7 +187,9 @@ const MenuDropdown: React.FC<IMenuDropdown> = ({
setShowRoleModal(true)
}}
>
<Text style={{ fontSize: 12, color: colors.primary }}>Change Role</Text>
<Text style={{ fontSize: 12, color: colors.primary }}>
{translate("settingScreen.membersSettingsScreen.changeRole")}
</Text>
</TouchableOpacity>

<TouchableOpacity
Expand All @@ -194,15 +198,19 @@ const MenuDropdown: React.FC<IMenuDropdown> = ({
setShowDropdownMenu(false)
}}
>
<Text style={{ fontSize: 12, color: colors.primary }}>Edit</Text>
<Text style={{ fontSize: 12, color: colors.primary }}>
{translate("common.edit")}
</Text>
</TouchableOpacity>

<TouchableOpacity
onPress={() => {
setShowDeleteConfirmation(true)
}}
>
<Text style={{ fontSize: 12, color: "#DA5E5E" }}>Delete</Text>
<Text style={{ fontSize: 12, color: "#DA5E5E" }}>
{translate("settingScreen.membersSettingsScreen.delete")}
</Text>
</TouchableOpacity>
</View>
)}
Expand Down

0 comments on commit b264a04

Please sign in to comment.