On Github zbraniecki / fronttrends2013
are native English speakers?
vs.
Zbigniew Braniecki, @zbraniecki
Staś Małolepszy, @stas
dated approach
English-centric
key-value pairs
plurals if you're lucky
(if you're a developer)
(if you're a localizer)
(if you're a user)
client-side
isolated
grammar-agnostic
responsive
based on a social contract
<h2 l10n-id="hello"></h2>
<hello "Hello, World!">
<hello "Witaj świecie!">
document.l10n.get('hello');
<new {
zero: "No new notifications",
one: "One new notifications",
other: "{{ $count }} new notifications"
}>
<new {
zero: "Brak nowych powiadomień",
one: "Jedno nowe powiadomienie",
few: "{{ $count }} nowe powiadomienia",
many: "{{ $count }} nowych powiadomień",
other: "{{ $count }} nowego powiadomienia"
}>
document.l10n.localize(['hello', 'unread'], function(l10n) {
var node = document.querySelector('[l10n-id=hello]');
node.textConent = l10n.entities.hello;
node.classList.remove('hidden');
});