#intl

BlueCutBlueCut
2025-01-24

Aujourd'hui j'ai plongé dans les méandres du dev Microsoft et j'ai publié ma toute première .

C'est pour formatter des string selon l'API stricte de .

C'est une humble v0.0.1 qui va me permettre de formatter plus vite des textes déjà existants dans la d'une qui était initialement en anglais.

marketplace.visualstudio.com/i

BlueCutBlueCut
2025-01-22

En ce moment je m'occupe de l' des textes d'une américaine. C'est passionnant de voir toutes les constructions hyper langue-centrées quand une n'est pas du tout pensée pour la trad dès la conception.

Exemple spécial US: ils utilis(ai)ent la librairie pour pluraliser des noms de ressources dynamiques dans l'UI. Le·a dev qui a fait ça s'est sans doute senti très malin sur le moment, sauf que non.

2024-08-12

‑에 설치하는데 하루 걸렸다.

Claudio Zizza 🦜SenseException@phpc.social
2024-07-29

ResourceBundle class throws an IntlException since #php 7 instead of writing null into a variable when instantiated wrong. I didn't notice that improvement.

It was always weird that something like

$var = new ResourceBundle('IWant', 'errors');

resulted with null in $var. #intl

2024-07-14

Recently I was preparing a talk for the fwdays PHP in Kyiv. A talk about internationalization. And gues what: One of the parts of internationalization is: Timezones. Yes, I know, I am fond of them and all but that’s not what this is going to be about.

In the talk I am showing how to propperly render a datetime for a given locale in a given timezone using […]

https://andreas.heigl.org/2024/07/14/how-to-keep-your-icu-version-up-to-date-when-using-the-php-intl-extension/

Chee Aun 🤔cheeaun
2024-05-30

`Intl.NumberFormat` with compact notation doesn't work for thousands in German language.

E.g.: 10000 → 10.000 instead of "10 Tsd.". But, 10000000 → "10 Mio."

I guess "Tsd." doesn't really compact it much unlike English's "10K" 🤷‍♂️

Relevant research: github.com/dart-lang/i18n/issu
> "Tsd does not occur in the CLDR data" st.unicode.org/cldr-apps/v#/de

Browser devtools console showing the use of the Intl.NumberFormat object in JavaScript to format numbers in different styles. The output demonstrates formatting numbers in German ("de") locale with "compact" notation and in English ("en") locale.

The output:

> Intl.NumberFormat('de', { notation: 'compact' }).format(10000)
'10.000'

> Intl.NumberFormat('de', { notation: 'compact' }).format(10000000)
'10 Mio.'

> Intl.NumberFormat('de', { notation: 'compact' }).format(10999)
'10.999'

> Intl.NumberFormat('en', { notation: 'compact' }).format(10999)
'11K'
2024-05-10

Support for JavaScript based stored functions and procedures in MySQL Enterprise and MySQL HeatWave in Oracle Cloud includes top-level, global objects.

Check out this post for an example of using the Intl object.
blogs.oracle.com/mysql/post/us

#mysql #javascript #intl

Claudio Zizza 🦜SenseException@phpc.social
2024-04-11

Locale::canonicalize('en-us')

=> en_US
#php #intl

Claudio Zizza 🦜SenseException@phpc.social
2024-03-28

I wonder if intl-sort still misses useful features for ordering localized data.
senseexception.github.io/intl-
#php #intl

2024-02-13

Больше библиотек богу библиотек или как я пересмотрел i18n

Для интернационализации сделаны десятки по-своему потрясающих библиотек, такие как i18n, react-intl, next-intl. Все они отлично справляются со своей задачей - добавляют переводы в приложение или на сайт. Большинство из них проверены, отлажены и стабильно поддерживаются. Но все они устарели. Ведь всё это время развивалось и экосистема реакта. Так, последняя версия next.js включила крупные обновления из react.js - cache, taint, новые хуки и, конечно же, серверные компоненты. Команда самого React.js, вероятно, представит эти изменения уже в мае. В этой статье я расскажу о ключевых изменениях, личном опыте, проблемах существующих решений, необходимым обновлениях, решениях, к которым я пришёл и, конечно же, отвечу на вопросы зачем, а самое главное - зачем?

habr.com/ru/articles/793266/

#react #next #frontend #i18n #intl #html #сайт #веб_разработка #переводы

Anyone happen to know if it's possible to get the historical offsets and DST information for all timezones from #Intl? Basically this info, but from the browser's #TZData: https://raw.githubusercontent.com/rxaviers/iana-tz-data/master/iana-tz-data.json

#WebDev

Claudio Zizza 🦜SenseException@phpc.social
2023-03-27

New release of Intl-Format: 3.1.
This time with some features for formatting precision numbers.
packagist.org/packages/senseex
#php #intl

Claudio Zizza 🦜SenseException@phpc.social
2023-03-17

The IntlDateFormatter is also a date parser. You don't see it very often nor can you guess it because of the class name and the date string has to be spot-on. #php #intl #icu
php.budgegeria.de/VagyQngrSbez

Chee Aun 🤔cheeaun
2023-02-25

difference between `navigator.language` and `new Intl.DateTimeFormat().resolvedOptions().locale`. From this StackOverflow post stackoverflow.com/questions/57

> `navigator.languages` reflects the browser language setting while `Intl.DateTimeFormat().resolvedOptions().locale` reflects the OS language setting

Devtools console output:

navigator.language
'en-GB'
new Intl.DateTimeFormat().resolvedOptions().locale
'en-SG'
2023-02-25

Instead of copy and paste code, you can get numbers converted to Roman numerals in with the library!
techie-jim.net/blog/php-intl-i

SPENCERspencer435
2023-02-11

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst