Skip to content

Commit 858cba3

Browse files
committed
chore: added translations
Signed-off-by: Mac Deluca <Mac.Deluca@quartech.com>
1 parent 54330ca commit 858cba3

File tree

4 files changed

+14
-10
lines changed

4 files changed

+14
-10
lines changed

app/src/bcsc-theme/features/home/components/SavedServices.tsx

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { BCState } from '@/store'
77
import { BCSCRootStackParams, BCSCScreens } from '@/bcsc-theme/types/navigators'
88
import { StackNavigationProp } from '@react-navigation/stack'
99
import { useNavigation } from '@react-navigation/native'
10+
import { useTranslation } from 'react-i18next'
1011

1112
interface SavedServiceProps {
1213
title: string
@@ -35,17 +36,14 @@ const SavedService: React.FC<SavedServiceProps> = ({ title, onPress }) => {
3536

3637
type ServicesNavigationProp = StackNavigationProp<BCSCRootStackParams, BCSCScreens.ServiceLoginScreen>
3738

38-
// to be replaced with API response or translation entries, whichever ends up being the case
39-
const mockTitle = 'YOUR SAVED SERVICES'
40-
const mockNoServicesMessage = 'No saved services'
41-
4239
const SavedServices: React.FC = () => {
4340
const { ColorPalette, Spacing } = useTheme()
4441
const [store] = useStore<BCState>()
4542
const navigation = useNavigation<ServicesNavigationProp>()
43+
const { t } = useTranslation()
4644

4745
const serviceClients = useFilterServiceClients({
48-
clientRefIdsFilter: store.bcsc.bookmarks,
46+
serviceClientIdsFilter: store.bcsc.bookmarks,
4947
})
5048

5149
const styles = StyleSheet.create({
@@ -69,7 +67,7 @@ const SavedServices: React.FC = () => {
6967
<View style={styles.headerContainer}>
7068
<Icon name="bookmark" size={24} color={ColorPalette.brand.tertiary} style={styles.bookmarkIcon} />
7169
<ThemedText variant={'bold'} style={{ color: ColorPalette.brand.tertiary }}>
72-
{mockTitle}
70+
{t('Services.SavedServices')}
7371
</ThemedText>
7472
</View>
7573

@@ -78,7 +76,7 @@ const SavedServices: React.FC = () => {
7876
variant={'headingFour'}
7977
style={{ color: ColorPalette.brand.tertiary, fontWeight: 'normal', paddingHorizontal: Spacing.md }}
8078
>
81-
{mockNoServicesMessage}
79+
{t('Services.NoSavedServices')}
8280
</ThemedText>
8381
) : (
8482
serviceClients.map((serviceClient) => (

app/src/localization/en/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,9 @@ const translation = {
232232
"NotListedDescription": "Services that are only available to specific people or people in specific professions are not listed above.",
233233
"NotListedDescriptionContact": "Contact the service to the the link to their website.",
234234
"PrivacyPolicy": "Privacy Policy",
235-
"LoginErrorTitle": "Unable to quick login to service"
235+
"LoginErrorTitle": "Unable to quick login to service",
236+
"SavedServices": "Saved Services",
237+
"NoSavedServices": "No saved services",
236238
},
237239
"Unified": {
238240
"Steps": {

app/src/localization/fr/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,9 @@ const translation = {
229229
"NotListedDescription": "Services that are only available to specific people or people in specific professions are not listed above. (FR)",
230230
"NotListedDescriptionContact": "Contact the service to the the link to their website. (FR)",
231231
"PrivacyPolicy": "Privacy Policy (FR)",
232-
"LoginErrorTitle": "Unable to quick login to service (FR)"
232+
"LoginErrorTitle": "Unable to quick login to service (FR)",
233+
"SavedServices": "Saved Services (FR)",
234+
"NoSavedServices": "No saved services (FR)",
233235
},
234236
"Unified": {
235237
"Steps": {

app/src/localization/pt-br/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,9 @@ const translation = {
229229
"NotListedDescription": "Services that are only available to specific people or people in specific professions are not listed above. (PR-BR)",
230230
"NotListedDescriptionContact": "Contact the service to the the link to their website. (PR-BR)",
231231
"PrivacyPolicy": "Privacy Policy (PT-BR)",
232-
"LoginErrorTitle": "Unable to quick login to service (PT-BR)"
232+
"LoginErrorTitle": "Unable to quick login to service (PT-BR)",
233+
"SavedServices": "Saved Services (PT-BR)",
234+
"NoSavedServices": "No saved services (PT-BR)",
233235
},
234236
"Unified": {
235237
"Steps": {

0 commit comments

Comments
 (0)