-
-
Notifications
You must be signed in to change notification settings - Fork 571
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
using in project #11
Comments
Yes, it's related to the starter architecture, not ng2-translate. The problem in the case of AngularClass/angular2-webpack-starter is that the assets are not copied to your public repository/dev server. You need to add 2 things to your webpack config:
|
whoot, thx for the superspeedy reply! 👍 I'll get to it |
works like a charm! |
Perfect then :-) |
I'm adding it as an extension to the starterkit now :) |
\o/ Don't get too much into ng2-translate, the i18n official library by google for angular 2 looks very promising and they should do it before angular 2 release |
Learning too much too quick today, thx for headsup |
@ocombe ,are you still in favor of waiting for the official i18n or do you feel things have changed? |
Well I don't see anything moving on the i18n side, we might have to wait a few months until they release something... |
👍 |
Hi,
I'm trying to integrate this library in the starter kit provided by AngularClass:
https://github.com/AngularClass/angular2-webpack-starter.
PatrickJS/PatrickJS-starter#208
The webpack dev server is serving from the
src
folder. The translations are defined insrc/assets/i18n
.It doesn't seem to find the translation files using the provided setup:
But if I change the configuration to be
var prefix = 'src/assets/i18n';
it works.I'm not sure this is something related to your package or perhaps to the starter kit architecture. So that's why I'll post it and reference it in both projects.
Kr
Sam V.
The text was updated successfully, but these errors were encountered: