Comments (4)
What do you think if we require a constant that would provide an absolute URL? Then it would work in all environments.
from angularjs-localizationservice.
Right now, I simply remove the leading slash and use relative path to retrieve the resource file. This may not work in other environments.
You could try loading the resource file based on document base href attribute. The base href attribute is usually set to the application starting page, which applies for both web applications and phonegap applications.
from angularjs-localizationservice.
Sounds good enough for me.
from angularjs-localizationservice.
It's been changed. should now work for you without modification.
from angularjs-localizationservice.
Related Issues (20)
- Why 'localize' service is always running HOT 4
- Fall back on default resource file when key is not present in localized resource file HOT 3
- Translating placeholder attributes HOT 1
- dictionary returns undefined HOT 2
- Dynamic model and translate HOT 1
- PRoblem with IE8 HOT 3
- Changing file extension for dictionaries from .js to .json HOT 1
- Wrong URL for resources-locale_default.js HOT 1
- HTML in JSON not rendered HOT 1
- using i18n for localization does not show translation in internet explorer (IE) 9 HOT 2
- Localization of images HOT 3
- Further thoughts and scope of localization on larger applications
- Could not able to parse French special characters HOT 4
- i18n filter HOT 8
- getLocalizedString filter returns an array!
- Not compatible with angular 1.3 HOT 1
- How to add a i18n label in a js file HOT 1
- Dynamic Dom HOT 1
- Pre-included localization .js files HOT 2
- i18nAttr not updated HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angularjs-localizationservice.