Skip to content
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

feat(localization): add Montenegrin language support #1442

Open
wants to merge 3 commits into
base: release-1.18.0
Choose a base branch
from

Conversation

YassinNouh21
Copy link
Contributor

@YassinNouh21 YassinNouh21 commented Nov 27, 2024

📝 Summary


This PR adds #1398

Description


  • Created Package:

  • Dependency Added:

    • Added montenegrin_localization: ^0.1.0+1 to pubspec.yaml to integrate the new localization package.
  • Configuration Updates:

    • Updated lib/src/const/config.dart by adding the Montenegrin language entry:
      "cnr": {"name": "Montenegrin", "nativeName": "Crnogorski"}
  • Main Application Modifications:

    • Imported the Montenegrin localization package in lib/main.dart:
      import 'package:montenegrin_localization/montenegrin_localization.dart';
    • Added Montenegrin localization delegates:
      MontenegrinMaterialLocalizations.delegate,
      MontenegrinWidgetsLocalizations.delegate,
      MontenegrinCupertinoLocalizations.delegate,
    • Updated supportedLocales to include Montenegrin:
      supportedLocales: [Locale('cnr'), ...S.supportedLocales],

Tests


🧪 Use Case 1

💬 Description:

  • Objective: Ensure that the Montenegrin localization is properly integrated and functional.

  • Steps:

    1. Launch the app.
    2. Navigate to the settings or language selection screen.
    3. Select Montenegrin as the preferred language.
    4. Verify that all textual elements are displayed in Montenegrin.
  • Expected Result: The app should display all relevant text in Montenegrin, and locale-specific functionalities should operate correctly.

📷 Screenshots or GIFs (if applicable):

Uploading new_language.gif…

Checklist:


  • Coding Standards: Reviewed the code to ensure it adheres to the project's coding standards.
  • Testing: Tested the Montenegrin localization functionality to confirm it works as expected.
  • Merge Conflicts: Resolved any merge conflicts with the latest main/development branch.
  • Branch Status: Ensured the branch is up-to-date with the target branch (main/development).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant