Skip to content

Can Node.js add API of I18n? #2753

Description

@ChristalYunSun

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.

Activity

  1. added
    i18n-apiIssues and PRs related to Node.js internationalization support.
    on Sep 9, 2015
  2. silverwind commented on Sep 9, 2015

    @silverwind
    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.

  3. ChristalYunSun commented on Sep 9, 2015

    @ChristalYunSun
    Author

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

  4. silverwind commented on Sep 9, 2015

    @silverwind
    Contributor

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

  5. ChristalYunSun commented on Sep 9, 2015

    @ChristalYunSun
    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.

  6. srl295 commented on Sep 9, 2015

    @srl295
    Member
  7. added
    feature requestIssues requesting new Node.js features.
    and removed
    questionIssues asking questions about Node.js.
    on Sep 27, 2015
  8. srl295 commented on Oct 20, 2015

    @srl295
    Member

    see #3413

  9. bnoordhuis commented on May 2, 2016

    @bnoordhuis
    Member

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

  10. jasnell commented on May 13, 2016

    @jasnell
    Member

    Closing. Can reopen if necessary

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues requesting new Node.js features.i18n-apiIssues and PRs related to Node.js internationalization support.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions