Skip to content
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

Support for Vanilla JavaScript Core/XML NativeScript projects #1

Open
Izrab opened this issue May 21, 2019 · 2 comments
Open

Support for Vanilla JavaScript Core/XML NativeScript projects #1

Izrab opened this issue May 21, 2019 · 2 comments
Labels
enhancement New feature or request

Comments

@Izrab
Copy link

Izrab commented May 21, 2019

Can I use this plugin for a Vanilla JS core/xml NS apps?
Where are documentations?

@pIvan pIvan added the enhancement New feature or request label May 21, 2019
@pIvan
Copy link
Owner

pIvan commented May 21, 2019

Hi @Izrab,
currently, it is not possible to use it as vanilla js,
but there is a plan for the future to prepare l10n.service for usage on
projects with vanilla js.

@pIvan
Copy link
Owner

pIvan commented May 21, 2019

@Izrab if you want to use just L10nService,
you could do something like this

import { L10nService, ... } from '@iplab/ngx-l10n';

const service = new L10nService(
new L10nBaseErrorHandler(),
new L10nBaseLoader(),
new L10nBaseStorage(),
new L10nBaseParser(),
new L10nBaseFormatter(...),
new L10nConfig()
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants