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
c-3po This project was formely named c-3po and later on renamed to ttag. Some of the talks, presentations, and documentation may still reference it by the old name. All new features will be applied to ttag package, the old c-3po packages will be supported only with bugfixes. Follow this simple migration guide Please refer to the new doc https://ttag.js.org Modern javascript i18n localization libra
Each language, and the countries that speak that language, have different expectations when it comes to how numbers (including currency and percentages) and dates should appear. Obviously, each language has different names for the days of the week and the months of the year. But they also have different expectations for the structure of dates, such as what order the day, month and year are in. In
続編と、コード自体ではなく、何をすればいいかを書きましたAmazonに見るi18n -「国際化対応」とは何を変える事か Webサイトを多言語化する 最近多言語化に関する仕事をしている関係でi18n(l10n)用のライブラリを色々と見たので、 i18nライブラリによくある使い方を紹介します。 とは言ってもほとんどのライブラリは同じような書き方をするのでJavaScriptを例にします。 ライブラリ一覧 書き方の紹介として使用するものはawasome-javascriptにあるものと、他に気になったものを選びました。 ただし、この記事の目的は「書き方」を紹介するもので「ライブラリ」を紹介するものではありません。 動くことは確認しましたがどのくらいまともに動くかはチェックしていないのでご注意ください。 Polyglot Airbnbが公開するシンプルなライブラリ i18next 色々な環境やフレ
いろいろ探してみたり、某node.js会長に聞いてみたりしたんですが、いまいち自分のニーズにあうi18nライブラリが見つからなかったので、一番理想に近い(けど一歩足りなかった)roddeh-i18nをベースに作ってみました。MITライセンスです。 国際化機能をサポート キーで単語を置き換える(元の単語もキーとして使用できます) 複数形 フォーマッティング(変数に値を設定) 文脈からの翻訳の選択(性別など) 小さくてポータブルなランタイム ランタイムは移植性の高いES3で書かれ、gzipで1.8キロバイト ランタイムは他に依存せず common.jsおよびAMDとも利用可能。<script>タグを使用したロードも可能 ブラウザで実行可能 仮想DOM(Mithril, Vue.js)で使用 スタティックなHTMLの翻訳 node.jsで実行可能 オフライン単位テストを簡単にする サーバー側のレ
const numberDe = new Intl.NumberFormat("de-DE"); const numberAr = new Intl.NumberFormat("ar"); console.log(numberDe.resolvedOptions().numberingSystem); // Expected output: "latn" console.log(numberAr.resolvedOptions().numberingSystem); // Expected output: "arab" Parameters None. Return value A new object with properties reflecting the options computed during the initialization of this Collator obj
The jQuery Foundation is excited to announce the 1.0 release of the Globalize project, our internationalization (i18n) library. This release has been a long time coming and as Globalize picks up steam and gains more and more adoption every day, we are proud to finally announce the first stable release of this project. We could go on about the features and benefits of this latest release but we fel
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
The globalization (internationalization and localization) farm of the JavaScript community. View project on GitHub JavaScript Globalization Overview Overview page that shows what solutions exist for JavaScript globalization (internationalization and localization). What is missing. What overlaps. Why each library was created. What are their goals, strengths and weaknesses. Summary ECMA-402 Cldrplur
Firefox 29 issued half a year ago, so this post is long overdue. Nevertheless I wanted to pause for a second to discuss the Internationalization API first shipped on desktop in that release (and passing all tests!). Norbert Lindenberg wrote most of the implementation, and I reviewed it and now maintain it. (Work by Makoto Kato should bring this to Android soon; b2g may take longer due to some b2g-
JSer.info #197 - Firefox 33.0がリリースされました。 ChromeやOperaは既にデフォルトサポートになっている<picture> 要素が、フラグ付きでFirefoxにも追加されました。 また開発者ツールにCSS周りの機能や、Developer Toolbarのコマンドなど色々追加されているので以下の記事を見てみるといいと思います。 Event listeners popup, @media sidebar, Cubic bezier editor + more – Firefox Developer Tools Episode 33 ✩ Mozilla Hacks – the Web developer blog Firefoxの開発者ツールの開発について興味がある方は以下のスライドも見てみると面白いかもしれません。 Five Stages of Devel
Internationalize your web apps on the client & serverIndustry-standard i18n libraries for JavaScript. Built on ICU Message syntax.
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く