feat(i18n): add bilingual support (Català / Castellano) #41

Merged
Ichitux merged 4 commits from feat/i18n-bilingual-ca-es into main 2026-07-17 08:40:15 +00:00
Owner

Add lightweight i18n system using React Context + useTranslation hook.
No external dependencies. Language persisted in localStorage('ff-lang').

New files:

  • src/i18n/locales/ca.js (~410 translation keys)
  • src/i18n/locales/es.js (~410 translation keys)
  • src/i18n/LanguageContext.jsx (Provider + t() function)
  • src/i18n/useTranslation.js (hook)
  • src/i18n/index.js (barrel export)

Modified 22 files:

  • main.jsx: wrap App with LanguageProvider
  • App.test.jsx: add LanguageProvider wrapper for tests
  • 13 user components: BottomNav, HomeView, LoginModal, SearchView,
    ProfileView, AlertsView, ScannerView, PharmacyList, MedicineResults,
    ProductResults, SavedNotifications, ErrorBoundary, SearchBar
  • 6 admin components: AdminView, LoginForm, PharmacyManagement,
    MedicineManagement, PharmacyMedicineLink, PharmacyProductLink

ProfileView includes language selector (globe icon + modal CA/ES)
placed next to the Theme selector.

No routes changed. No API calls affected. No navigation changes.

Add lightweight i18n system using React Context + useTranslation hook. No external dependencies. Language persisted in localStorage('ff-lang'). New files: - src/i18n/locales/ca.js (~410 translation keys) - src/i18n/locales/es.js (~410 translation keys) - src/i18n/LanguageContext.jsx (Provider + t() function) - src/i18n/useTranslation.js (hook) - src/i18n/index.js (barrel export) Modified 22 files: - main.jsx: wrap App with LanguageProvider - App.test.jsx: add LanguageProvider wrapper for tests - 13 user components: BottomNav, HomeView, LoginModal, SearchView, ProfileView, AlertsView, ScannerView, PharmacyList, MedicineResults, ProductResults, SavedNotifications, ErrorBoundary, SearchBar - 6 admin components: AdminView, LoginForm, PharmacyManagement, MedicineManagement, PharmacyMedicineLink, PharmacyProductLink ProfileView includes language selector (globe icon + modal CA/ES) placed next to the Theme selector. No routes changed. No API calls affected. No navigation changes.
Ichitux added 1 commit 2026-07-17 07:44:53 +00:00
feat(i18n): add bilingual support (Català / Castellano)
Run Tests on Branches / Detect Changes (push) Successful in 11s
Run Tests on Branches / Backend Tests (push) Has been skipped
Run Tests on Branches / Frontend Tests (push) Successful in 1m44s
Run Tests on Branches / Frontend Mobile Tests (push) Has been skipped
Run Tests on Branches / Parapharmacy API Tests (push) Has been skipped
38374341ed
Add lightweight i18n system using React Context + useTranslation hook.
No external dependencies. Language persisted in localStorage('ff-lang').

New files:
- src/i18n/locales/ca.js (~410 translation keys)
- src/i18n/locales/es.js (~410 translation keys)
- src/i18n/LanguageContext.jsx (Provider + t() function)
- src/i18n/useTranslation.js (hook)
- src/i18n/index.js (barrel export)

Modified 22 files:
- main.jsx: wrap App with LanguageProvider
- App.test.jsx: add LanguageProvider wrapper for tests
- 13 user components: BottomNav, HomeView, LoginModal, SearchView,
  ProfileView, AlertsView, ScannerView, PharmacyList, MedicineResults,
  ProductResults, SavedNotifications, ErrorBoundary, SearchBar
- 6 admin components: AdminView, LoginForm, PharmacyManagement,
  MedicineManagement, PharmacyMedicineLink, PharmacyProductLink

ProfileView includes language selector (globe icon + modal CA/ES)
placed next to the Theme selector.

No routes changed. No API calls affected. No navigation changes.
Ichitux added 1 commit 2026-07-17 07:50:36 +00:00
Merge branch 'main' into feat/i18n-bilingual-ca-es
Run Tests on Branches / Detect Changes (push) Successful in 13s
Run Tests on Branches / Backend Tests (push) Has been skipped
Run Tests on Branches / Frontend Tests (push) Successful in 1m45s
Run Tests on Branches / Frontend Mobile Tests (push) Has been skipped
Run Tests on Branches / Parapharmacy API Tests (push) Has been skipped
Run Tests on Branches / PIP Platform Tests (push) Has been skipped
d12c575fcf
Ichitux added 1 commit 2026-07-17 08:22:53 +00:00
feat(i18n-mobile): add bilingual support (Català / Castellano) for React Native app
Run Tests on Branches / Detect Changes (push) Successful in 13s
Run Tests on Branches / Backend Tests (push) Has been skipped
Run Tests on Branches / Frontend Tests (push) Successful in 1m40s
Run Tests on Branches / Frontend Mobile Tests (push) Successful in 1m37s
Run Tests on Branches / Parapharmacy API Tests (push) Has been skipped
Run Tests on Branches / PIP Platform Tests (push) Has been skipped
ee958d4525
Add lightweight i18n system matching the web app architecture.
Language persisted in AsyncStorage('ff-lang').

New files:
- src/i18n/locales/ca.js (~190 translation keys)
- src/i18n/locales/es.js (~190 translation keys)
- src/i18n/LanguageContext.jsx (Provider + AsyncStorage)
- src/i18n/useTranslation.js (hook)
- src/i18n/index.js (barrel export)

Modified 16 files:
- app/_layout.tsx: wrap with LanguageProvider, translate stack titles
- app/(tabs)/_layout.tsx: translate tab bar labels
- app/(tabs)/index.tsx: translate home screen
- app/(tabs)/search.tsx: translate search screen
- app/(tabs)/alerts.tsx: translate alerts screen
- app/(tabs)/profile.tsx: translate profile + add language selector (CA/ES)
- app/(tabs)/scan.tsx: translate scanner screen
- app/auth/login.tsx: translate login/register
- app/medicine/[id].tsx: translate medicine detail
- app/pharmacy/[id].tsx: translate pharmacy detail
- app/product/[source]/[id].tsx: translate product detail
- 5 components: MedicineCard, StockBadge, SearchBar, LoadingSpinner, BarcodeScanner

Language selector in Profile screen (globe icon + CA/ES toggle).
No routes changed. No API calls affected.
Ichitux added 1 commit 2026-07-17 08:25:17 +00:00
Merge branch 'main' into feat/i18n-bilingual-ca-es
Run Tests on Branches / Detect Changes (push) Successful in 14s
Run Tests on Branches / Backend Tests (push) Has been skipped
Run Tests on Branches / Frontend Tests (push) Successful in 1m40s
Run Tests on Branches / Frontend Mobile Tests (push) Successful in 1m40s
Run Tests on Branches / Parapharmacy API Tests (push) Has been skipped
Run Tests on Branches / PIP Platform Tests (push) Has been skipped
be707408b2
Ichitux merged commit 5c7d197566 into main 2026-07-17 08:40:15 +00:00
Ichitux deleted branch feat/i18n-bilingual-ca-es 2026-07-17 08:40:15 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Ichitux/FarmaFinder#41