EddyVerbruggen / EddyVerbruggen/nativescript-localize

Localization does not work, without any error message.

Open
#87 13 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
80
Forks
31
PR merge metrics
No merged PRs in 30d

Description

I have just finished the install process:

  • tns plugin add nativescript-localize
  • created localization files (see image)
  • imported NativeScriptLocalizeModule in app.module
    image
    image

But if I try to translate any string, it simply won't work.

Both in TS code (app.component.ts):

export class AppComponent implements OnInit {

    constructor(private router: Router,
                private routerExtensions: RouterExtensions) {
        console.log(localize("test"));
    }

or in template:
<Label text="{{ 'test' | L }}"></Label> does only returns "test" instead of the translated value.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the setup from the issue with tns plugin add nativescript-localize, the localization files, app.module, and app.component.ts. Start by checking the localization files and the localize() call or L pipe, then compare the TypeScript and template results. Done means both examples return the translated value instead of "test".

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, typescript
Domain
localization, mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.