Skip to content

Add language support #149

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

yurier98
Copy link

This pull request introduces internationalization (i18n) support across various components in the app. The changes replace hardcoded text with localized strings using the useI18n composable, enabling dynamic translations based on the user's selected language. Additionally, placeholders, labels, and other UI elements now leverage localization for improved adaptability.

Internationalization Integration:

  • Global i18n Setup in app.vue:

    • Introduced locale and dir bindings for dynamic language and direction attributes in the HTML <html> tag. [1] [2]
    • Passed the locale to the UApp component for consistent localization throughout the app.
  • Localization in Component Headers and Placeholders:

    • NotificationsSlideover.vue: Updated the title and added a fallback message for empty notifications using localized strings. [1] [2]
    • AddModal.vue and DeleteModal.vue: Replaced static modal titles, descriptions, and button labels with localized equivalents. [1] [2] [3]
    • HomeDateRangePicker.vue: Localized date range options and placeholder text. [1] [2]
  • Dynamic Dropdown Menus and Tables:

    • UserMenu.vue: Localized dropdown items for profile, billing, settings, themes, and templates, including a new language selection dropdown. [1] [2]
    • HomeSales.vue: Updated table headers and status badges for sales data with localized strings. [1] [2]
  • Charts and Stats Localization:

    • HomeChart.client.vue and HomeChart.server.vue: Localized chart titles. [1] [2]
    • HomeStats.vue: Replaced static stat titles with localized keys for customers, conversions, revenue, and orders.

These updates ensure that the application is ready for multilingual support, improving usability for users in different regions.

…d Français locales

Implement i18n using @nuxtjs/i18n module to support multiple languages. Add English  Spanish and Français locale files with translations for all UI components, pages, and settings. Update components and pages to use the `t` function for dynamic text rendering based on the selected locale. Configure the i18n module in nuxt.config.ts with default locale set to English and no prefix strategy. Ensure all text elements are localized for a consistent multilingual user experience.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant