EddyVerbruggen / EddyVerbruggen/nativescript-localize
Localization does not work, without any error message.
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


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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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