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

Can Node.js add API of I18n? #2753

Closed
ChristalYunSun opened this issue Sep 9, 2015 · 8 comments
Closed

Can Node.js add API of I18n? #2753

ChristalYunSun opened this issue Sep 9, 2015 · 8 comments
Labels
feature request Issues that request new features to be added to Node.js. i18n-api Issues and PRs related to the i18n implementation.

Comments

@ChristalYunSun
Copy link

I build native addons of gettext but it read file everytime called. The javascript version isn't well-performed in cache when I want to translate into multiple languages according users' locales. Some language files are so large to cache in memory.

@brendanashworth brendanashworth added the i18n-api Issues and PRs related to the i18n implementation. label Sep 9, 2015
@silverwind
Copy link
Contributor

You can build with full full-icu to get access to all Internationalizations APIs in JS.

I think it's planned to default to this eventually for release builds, but the concern so far was the increased binary size.

@ChristalYunSun
Copy link
Author

Thanks, silverwind. But the APIs cannot translate strings into locales. Any idea about l10n in node?

@silverwind
Copy link
Contributor

Maybe @srl295 can help there. Does https://github.com/mashpie/i18n-node help?

@ChristalYunSun
Copy link
Author

Yes, there are many modules do this.
But the issue is, I have tons of translations and cannot cache all of them in memory.
I'm just looking for an efficient way to do this.

@srl295
Copy link
Member

srl295 commented Sep 9, 2015 via email

@silverwind silverwind added the question Issues that look for answers. label Sep 22, 2015
@brendanashworth brendanashworth added feature request Issues that request new features to be added to Node.js. and removed question Issues that look for answers. labels Sep 27, 2015
@srl295
Copy link
Member

srl295 commented Oct 20, 2015

see #3413

@bnoordhuis
Copy link
Member

@srl295 Are there any concrete actions we can take? If not, I would suggest closing this for now.

@jasnell
Copy link
Member

jasnell commented May 13, 2016

Closing. Can reopen if necessary

@jasnell jasnell closed this as completed May 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Issues that request new features to be added to Node.js. i18n-api Issues and PRs related to the i18n implementation.
Projects
None yet
Development

No branches or pull requests

6 participants