About slidr.io is the easiest, most effective way to share your slide presentations. Stop worrying if the upload will fail, our fool-proof PDF engine is quicker than any other slide sharing tool in the world. Terms of Service Privacy Policy Presskit
Internationalization - something you constantly hear developers talking about but rarely actually see people using in practice - is getting a kick in the pants with the new ECMAScript Internationalization API. Currently supported in Chrome 24, Chrome for Android, Firefox 29, IE 11, and Opera 15 (sadly no Safari support), the new Intl namespace provides a set of functionality to add internationaliz
先週発売されたWEB+DB PRESS Vol.78のJavaScript連載にて、「フロントエンドの国際化」をテーマに記事を書きました! 内容はこんな感じです。 国際化の基本 I18NとL10N ロケール タイムゾーン フロントエンドにおける国際化 メッセージリソースの管理 数値や日付のフォーマット CLDRとICU JavaScriptにおける文字コードの罠 JavaScriptにおけるタイムゾーンの罠 JavaScript国際化関連ライブラリ i18next Numeral.js Moment.js & Moment Timezone ECMAScript 6 Internationalization API 前半ではソフトウェアの国際化で使われる基本概念と、最近のフロントエンド領域で国際化を行うときに課題となるポイントを解説しています。 中盤ではいくつかの定番ライブラリを紹介し、最
If you have ever tried to write an application that supports multiple languages, I’m sure you will agree that it can be a complicated process. While there are obvious issues, such as translating the text, there are also differing conventions between countries on how things like dates and numbers are formatted, or how letters are sorted. Even just between the different versions of English, there ar
//Browser example. Server would have it the same, just after calling Pomo = require('./pomo.js') window.onload = function() { /* Set a default domain for the Pomo.getText calls. If omitted, all calls to getText need to pass the domain set on Pomo.load, unless none was passed, in which case getText doesn't require a domain */ Pomo.domain = 'translation_domain'; //return a plain string instead of a
Polyglot.js is a tiny I18n helper library written in JavaScript, made to work both in the browser and in CommonJS environments (Node). It provides a simple solution for interpolation and pluralization, based off of Airbnb’s experience adding I18n functionality to its Backbone.js and Node apps. I18n is incredibly important for us at Airbnb, as we have listings in 192 countries, and we translate our
x18n.register('en', { user: { greeting: 'Welcome %1', browser: 'You are using %{browser}.', logout: 'Logout', count: { 1: 'There is 1 user online.', n: 'There are %1 users online.' } } }); let t = x18n.t; t('user.logout'); // 'Logout' t('user.greeting', 'John'); // 'Welcome John' t('user.browser', {browser: 'Chromium'}); // 'You are using Chromium.' t('user.count').plural(1); // 'There is 1 user o
From funktio f(x) { jos (x % 2 == 0) { palauta tosi; } muuten { palauta epätosi; } } joka (muu i = 0; i < 10; i++) { konsoli.loki(i, f(i)); jos (i > 5) lopeta; } muu Terve = funktio(nimi) { tämä.nimi = nimi; }; Terve.prototyyppi = {}; Terve.prototyyppi.moi = funktio() { konsoli.loki( "Moi, " + tämä.nimi + "!" ); }; muu tere = uusi Terve("Veijo"); tere.moi(); joka (muu i johon tere) { konsoli.loki(
Gettext Style i18n for Modern JavaScript Appsvar i18n = new Jed({ locale_data: { ... } }); // Use the chainable API i18n.translate("There is one translation.") .onDomain("messages") .withContext("male") .ifPlural( num, "There are %d translations." ) .fetch( num ); // Or kick it old school var out = i18n.dnpgettext( "messages", "male", "There is one translation.", "There are %d translations.", num
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く