actimeo / ng2-i18next

use i18next with Angular2
MIT License
11 stars 9 forks source link

How to use in non-CLI Angular 2 App? #16

Open johnknelson opened 7 years ago

johnknelson commented 7 years ago

I have installed ng2-i18next in my Visual Studio web project using npm, and can import and reference module succesfully like such:

import { I18nService, I18nServiceConfig } from 'ng2-i18next';

But I'm unsure how to continue when I get to the step in the instructions which reads:

Your locales have to be placed, for each language , in src/locales//translation.json .

I know CLI projects have this structure, but my project doesn't. Is there a way to specify the path to the translation files? Can I still use the i18next initialization methods to reference a file or url?

Thanks!