question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue with static json files

See original GitHub issue

I’m submitting a…

[x] bug report
[ ] feature request
[ ] support request

Expected behavior Translation should work with json files

Actual behavior always getting a No Key

Steps to reproduce the behavior https://github.com/damirkusar/tempForIsuueTranslation

NPM Install NG SERVE

–>

Am I missing something? This is just a made up project, because we are using currently api calls which works, but our PoC to move back to json files does not… Maybe i forgot something to do, but cant see it 😦

Thanks for help…

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
robisim74commented, Dec 20, 2017

You can build a Custom Provider: https://robisim74.github.io/angular-l10n/spec/configuration/#loading-the-translation-data keeping type: ProviderType.Fallback and implemeting your custom URL.

0reactions
damirkusarcommented, Dec 20, 2017

ok… just another question… can you also do a API call for fallback? similar to the below one? { type: ProviderType.Fallback, prefix: ‘./assets/localisations/locale-en’, fallbackLanguage: [] },

Read more comments on GitHub >

github_iconTop Results From Across the Web

What are the Pitfalls of Using Static JSON Files for Frontend ...
What pitfalls would arise from using a static JSON file that I parse and display, instead of a traditional REST API?
Read more >
Serving static JSON files - WordPress.org
The topic 'Serving static JSON files' is closed to new replies. WP REST Cache · Frequently Asked Questions · Support Threads · Active...
Read more >
Node.js Tips — Read JSON, Serve Static Files, Sorting File ...
We can serve static files and route requests to static pages. Files can be sorted once they're read. Error objects can be modified...
Read more >
DataV:Add a static JSON file - Alibaba Cloud
This topic describes how to add a static JSON file to DataV. Prerequisites. The static JSON file to be added is prepared. Procedure....
Read more >
JSON parsing from a static JSON fi… | Apple Developer Forums
POST is exactly the same as this: https://admin.radiopromil.online/api/nowplaying , but than I have still the problem with forcing the app to fetch data...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found