Live data from Hacker News

FormatJS – Internationalize your web apps on the client and server

formatjs.io

31–39 of 39 posts

Re: FormatJS – Internationalize your web apps on the client and server

#31

> 10/14/2014 English (US) > 14/10/2014 French Pedantic Englishman here: 14/10/2014 is used all over Europe, including England. If only we could persuade the world to use an international format: 2014-10-14, for example.

I like using "14 Oct 2014" to avoid any ambiguity. 2014-10-14 is good too but it comes off a bit technical, like dropping scientific notation in an everyday message.

Re: FormatJS – Internationalize your web apps on the client and server

#32
post #18

The official announcement is now live: http://yahooeng.tumblr.com/post/100006468771/announcing-form... hopefully it will help to clarify few of the questions...

Any thoughts on how hard this might be to integrate with Polymer (or web components in general)?

Re: FormatJS – Internationalize your web apps on the client and server

#33
post #26

Earlier quoted context omitted.

Yeah, for a simple plural that can be a bit longer. In other languages, though, the pluralization rules get rather complicated[1]. (For example, Arabic has both complicated pluralization rules -and- a lot of people who speak it.) The strength of the ICU message format, in my mind, is that the messages can be "nested" so that the translation can be customized for multiple concerns (plural, gender, whatever). Also, wit…

Nice, I didn't know that about Arabic, and the many other languages. Though i18n-js does let you write your own pluralizations rules (taken from the readme), while supporting zero/one/many out of the box: I18n.pluralization["ru"] = function (count) { var key = count % 10 == 1 && count % 100 != 11 ? "one" : [2, 3, 4].indexOf(count % 10) >= 0 && [12, 13, 14].indexOf(count % 100) = 0 || [11, 12, 13, 14].indexOf(count %…

There are a few NPM libraries (make-plural, cldr, probably others) which will help you write those pluralization functions. The CLDR data does get updated from time to time, so it's nice to rely on another package to trace those changes.

Re: FormatJS – Internationalize your web apps on the client and server

#34
A related thought: I wonder if we will some day live in a world where translation is not required. Where everyone knows English and has no trouble using English tools and consuming English content.

Same goes for measurement systems (metric), time, currency, and other formats. I reckon it would simplify our lives greatly and spare us the trouble of dealing with 1000s of encodings, multi-byte strings and different text directions.

Technological landscape is the only place where such unity between nations is possible, I tend to think that this is what should be pursued instead of translate-everything-everywhere approach.

Re: FormatJS – Internationalize your web apps on the client and server

#35

A related thought: I wonder if we will some day live in a world where translation is not required. Where everyone knows English and has no trouble using English tools and consuming English content. Same goes for measurement systems (metric), time, currency, and other formats. I reckon it would simplify our lives greatly and spare us the trouble of dealing with 1000s of encodings, multi-byte strings and different text…

What makes you think it won't be Chinese?

Re: FormatJS – Internationalize your web apps on the client and server

#36
post #35

A related thought: I wonder if we will some day live in a world where translation is not required. Where everyone knows English and has no trouble using English tools and consuming English content. Same goes for measurement systems (metric), time, currency, and other formats. I reckon it would simplify our lives greatly and spare us the trouble of dealing with 1000s of encodings, multi-byte strings and different text…

What makes you think it won't be Chinese?

The fact that English is easier to learn :)

Re: FormatJS – Internationalize your web apps on the client and server

#37
post #35

Earlier quoted context omitted.

What makes you think it won't be Chinese?

The fact that English is easier to learn :)

I doubt ease of learning really has anything to do with the current popularity of English. As soon as the USA stops being the dominant power in the world, English will start losing ground as well.

edit: Looking at the EF English Proficiency Index[1], English doesn't seem quite as universal as it feels like in the Anglosphere anyway.

[1]: http://en.wikipedia.org/wiki/EF_English_Proficiency_Index

Re: FormatJS – Internationalize your web apps on the client and server

#38
post #35

Earlier quoted context omitted.

What makes you think it won't be Chinese?

The fact that English is easier to learn :)

It's only "fact" because you are accustomed to latin alphabet and you are native speaker of language that was either latin-influenced, shares root with English, or you were taught it since you were child.

The last one actually is sometimes called "little chinese boy" in circles of language tutors due to how young children can easily pick up languages different from their native one due to lack of bias. My cousin thats 5 years old now is already dual-languaged due to her parents exposing her to their native languages at all times.

Re: FormatJS – Internationalize your web apps on the client and server

#39
post #38

Earlier quoted context omitted.

The fact that English is easier to learn :)

It's only "fact" because you are accustomed to latin alphabet and you are native speaker of language that was either latin-influenced, shares root with English, or you were taught it since you were child. The last one actually is sometimes called "little chinese boy" in circles of language tutors due to how young children can easily pick up languages different from their native one due to lack of bias. My cousin that…

My original point also has a lot to do with single-byte encoding(s), as you may have noticed. Will we really want to change ASCII to encode something different than it does now? Will we throw away all our programming languages as well? I don't think so.
Post reply on HN