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.

$translateProvider.useStaticFilesLoader with external source

See original GitHub issue

I was trying to use useStaticFilesLoader with external source.

$translateProvider.useStaticFilesLoader({ prefix: 'http://localhost:3001/i18n/', suffix: '.json' });

Source json is downloading correctly from location Ex- http://localhost:3001/i18n/sw.json. But language translation is not working.

Here is how I am using it.

<h2 class="ops" data-translate="ERROR_IMAGE_AREA_SELECT_MULTIPLE _SELECTION"></h2>

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
knallicommented, Mar 11, 2018

Hello,

I’m closing this issue due inactivity. We have asked for additional details, but you could not helped us. Therefore we close this issue as not reproducible.

If you still have an issue, please create a new issue because we cannot be sure to track closed issues.

0reactions
knallicommented, Nov 1, 2017

Hello,

as we had already mentioned in the issue’s template, we need a working and as minimal as possible demo covering your specific use case or issue.

Follow these steps:

  1. Please open this plnkr base.
  2. Fork it (at the top left).
  3. Ensure the version of AngularJS and angular-translate is correct.
  4. Ensure all angular-translate plugins are available; reduce and remove anything you can.
  5. Write a minimal as possible demo for your specific issue.
  6. Save and freeze. Provide us the final link to your demo.
Read more comments on GitHub >

github_iconTop Results From Across the Web

$translateProvider.useStaticFilesLoader with external source
I was trying to use useStaticFilesLoader with external source. $translateProvider ... Source json is downloading correctly from location Ex- ...
Read more >
$translateProvider.useStaticFilesLoader with external source
I was trying to use useStaticFilesLoader with external source. $translateProvider.useStaticFilesLoader({
Read more >
ANGULAR TRANSLATE - Sean Amarasinghe
Angular Translate is an AngularJS module called angular-translate which ... we can define the files statically outside a different location.
Read more >
Doc: Guide - Angular Translate
When you read this doc, you'll learn how to use angular-translate and its cool features! ... Inject angular-translate module as a dependency into...
Read more >
gulp-merge-translations - npm package - Snyk
import mergeTranslations from 'gulp-merge-translations'; gulp.task('default', function() { return gulp.src(source/**/*.json) ...
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