let assoc = {
one: 'Яблоко',
few: 'Яблока',
many: 'Яблок',
}
let number = 31;
let form = new Intl.PluralRules('ru-RU').select(number);
console.log(number, assoc[form]); // 31 Яблоко
'ё'.normalize('NFC').length == 1
- true'ё'.normalize('NFD').length == 2
- true server {
listen *:80;
server_name example.com;
proxy_set_header Host example.com;
location / {
rewrite ^(.*)$ https://example.com$1 permanent;
}
}
server {
listen *:443 ssl;
server_name example.com;
proxy_set_header Host example.com;
location / {
proxy_pass http://127.0.0.1:8080;
}
}