タグ

i18nに関するJxckのブックマーク (4)

  • Intl.PluralRules · V8

    Iñtërnâtiônàlizætiøn is hard. Handling plurals is one of many problems that might seem simple, until you realize every language has its own pluralization rules. For English pluralization, there are only two possible outcomes. Let’s use the word “cat” as an example: 1 cat, i.e. the 'one' form, known as the singular in English2 cats, but also 42 cats, 0.5 cats, etc., i.e. the 'other' form (the only

    Jxck
    Jxck 2017/10/05
    Iñtërnâtiônàlizætiøn
  • i18nの書き方 from JavaScript - Qiita

    続編と、コード自体ではなく、何をすればいいかを書きましたAmazonに見るi18n -「国際化対応」とは何を変える事か Webサイトを多言語化する 最近多言語化に関する仕事をしている関係でi18n(l10n)用のライブラリを色々と見たので、 i18nライブラリによくある使い方を紹介します。 とは言ってもほとんどのライブラリは同じような書き方をするのでJavaScriptを例にします。 ライブラリ一覧 書き方の紹介として使用するものはawasome-javascriptにあるものと、他に気になったものを選びました。 ただし、この記事の目的は「書き方」を紹介するもので「ライブラリ」を紹介するものではありません。 動くことは確認しましたがどのくらいまともに動くかはチェックしていないのでご注意ください。 Polyglot Airbnbが公開するシンプルなライブラリ i18next 色々な環境やフレ

    i18nの書き方 from JavaScript - Qiita
    Jxck
    Jxck 2017/02/20
  • i18n with tagged template literals in ECMAScript 2015

    One of the new features of ECMAScript 2015 are template literals. The simplest use cases for template literals are creating multiline strings, and doing string interpolation. Multiline string: let s = `This is a multiline string`; String interpolation: let firstName = 'Bob', lastName = 'Smith'; let msg = `Hello ${firstName} ${lastName}!`; // 'Hello Bob Smith!' You can also tag template literals by

  • ECMA-402

    ECMA-402 2017/01/15 @makoto_kato

    ECMA-402
    Jxck
    Jxck 2017/01/16
  • 1