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

implement localization i18n to project [en-fr-de-es-tr] #43

Open
JordyHers opened this issue Jun 2, 2023 · 1 comment
Open

implement localization i18n to project [en-fr-de-es-tr] #43

JordyHers opened this issue Jun 2, 2023 · 1 comment
Assignees
Labels
good first issue Good for newcomers hacktoberfest ⛏️ HacktoberFest contributions
Milestone

Comments

@JordyHers
Copy link
Contributor

JordyHers commented Jun 2, 2023

Current Behaviour:

All the strings are hard coded in the app. That should not be the case for example
the file set_child_page has a show alert dialog in the submit method

     await showAlertDialog(context,
            title: 'No Such file in Database',
            content: 'ERROR OCCURED COULD NOT MOVE TO THE NEXT PAGE',
            defaultActionText: 'OK');
        print('ERROR OCCURED COULD NOT MOVE TO THE NEXT PAGE');

Expected Behaviour:

All strings in app should be properly translated in the supported language based on the user app locale. Make sure no hard coded string is available in app.

What needs to be done:

Step 1:

Go to the corresponding files in the project.in i18n arb and add translations for English, French ,Spanish, German , Turkish.
For instance in the english file

{
    "@@locale": "en",  
    "welcome": "Welcome",
    "changeTheSettingsHere": "change the settings here",
    "addNewChildHere": "Add a new child here ",
    "operationFailed": "Operation failed",
    "enterThisCode": "Enter this code on the child's device",
    "longPressToCopyOrDoubleTapToShare": "Long press to copy or double tap to share",
    "enterThisCodeOnChildDevice": "Enter this code on child's device: ",
    "sendNotificationToYourChildDevice": "Send notifications to your Child's device",
    "copyText" : "Code Copied!"
    "newText" : "NewText" // <- add the text here...
}

Step 2:

$ flutter gen-l10

Steps to Reproduce:

NO/

Environment:

Emulator: Pixel 6 Pro
Android version: 12
Android SDK: 33

@JordyHers JordyHers converted this from a draft issue Jun 2, 2023
@JordyHers JordyHers added this to the v.2.0.0 milestone Jun 2, 2023
@JordyHers JordyHers self-assigned this Jun 28, 2023
@JordyHers JordyHers moved this from Backlog to In Progress in Time's up Flutter Jun 28, 2023
JordyHers added a commit that referenced this issue Jul 8, 2023
JordyHers added a commit that referenced this issue Jul 8, 2023
JordyHers added a commit that referenced this issue Jul 8, 2023
JordyHers added a commit that referenced this issue Jul 8, 2023
@JordyHers JordyHers changed the title implement localization i18n to project [en-fr-de-ar-tr] implement localization i18n to project [en-fr-de-es-tr] Jul 9, 2023
JordyHers added a commit that referenced this issue Jul 9, 2023
JordyHers added a commit that referenced this issue Aug 18, 2023
…ation-i18n-to-project-en-fr-de-ar-tr

chore(#43) : add app localization setting
@JordyHers JordyHers removed their assignment Oct 1, 2023
@JordyHers JordyHers moved this from In Progress to Backlog in Time's up Flutter Oct 1, 2023
@JordyHers JordyHers added hacktoberfest ⛏️ HacktoberFest contributions good first issue Good for newcomers labels Oct 1, 2023
@MunibullahShah
Copy link

Working on it, assigned to me in discord....l

@JordyHers JordyHers moved this from Backlog to In Progress in Time's up Flutter Oct 9, 2023
@JordyHers JordyHers assigned JordyHers and unassigned MunibullahShah Nov 8, 2023
JordyHers added a commit that referenced this issue Nov 8, 2023
JordyHers added a commit that referenced this issue Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers hacktoberfest ⛏️ HacktoberFest contributions
Projects
Status: In Progress
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants