Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

i18n-behavior

Package Overview
Dependencies
Maintainers
1
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

i18n-behavior - npm Package Versions

1
10

1.0.0

Diff

Changelog

Source

[1.0.0]

Added

  • Instant I18N by one line addition of I18nBehavior
  • Minimal or no overhead for development: Run-time automatic extraction of hard-coded UI text strings from HTML templates
  • Optimal for production: Build-time automatic extraction and bundling of hard-coded UI text strings from HTML templates by gulp-i18n-preprocess preprocessor
  • Modular (per element) JSON support for storing and fetching localized UI text strings
  • Bundled (per app) JSON support for storing and fetching localized UI text strings
  • Automatic application of <i18n-format> with Unicode CLDR plural rules and Gender support
  • Polymer 1.2.0's Compound Bindings support with <i18n-format>
  • i18n-dom-bind template instead of dom-bind for instant I18N of bound templates
  • Dynamic on-demand fetching of localized UI text strings from JSON under locales directories
  • Real-time observation of <html lang> attribute value for UI text localization
  • Robust fallback of missing UI text strings to parent locales and finally to the default locale (e.g. "fr-CA" -> "fr" -> "en") with practical BCP47 support
  • this.text dynamic object shared among the same custom element to access localized strings
  • this.model object deepcopied from this.text.model object per instance to access localized attribute strings
  • i18n-attr-repo to maintain repository of I18N target attributes
  • gulp-i18n-leverage filter to merge changes in the default language in HTML templates into localized JSON resources.
  • gulp-i18n-leverage filter to put meta infomation, that is, L10N "TO DO" list, for the merged changes in JSON resources
  • Option to define I18N target strings manually by <json-data> elements

Changed

| Module | Packager | Version | Description | |:--------------|:---------|:--------|:------------| | i18n-behavior | bower | 1.0.0 | Run-time I18N handler | | i18n-format | bower | 1.0.0 | I18N text formatter | | i18n-number | bower | 1.0.0 | I18N number formatter | | gulp-i18n-preprocess | npm | 1.0.0 | Build-time I18N preprocessor | | gulp-i18n-leverage | npm | 1.0.0 | L10N JSON updater | | gulp-i18n-add-locales | npm | 0.1.0 | L10N JSON placeholder generator |

t2ym
published 0.0.60 •

t2ym
published 0.0.59 •

t2ym
published 0.0.58 •

t2ym
published 0.0.57 •

t2ym
published 0.0.56 •

t2ym
published 0.0.55 •

t2ym
published 0.0.54 •

t2ym
published 0.0.53 •

t2ym
published 0.0.52 •

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc