mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-07 06:40:54 +00:00
4.13.3
* Changed: Shift-Click the FFZ Control Center icon in the top navigation to open the Control Center in a new window. * Fixed: Unnecessary localization calls for add-ons. * Fixed: Show an in-page notification rather than an alert box if the FFZ Control Center fails to load. * Fixed: Adding an event to an EventListener while the event firing potentially leading to an infinite loop. * Fixed: Pluralization rules for Ukrainian.
This commit is contained in:
parent
8c7e03119f
commit
02efd61f00
7 changed files with 180 additions and 118 deletions
|
@ -488,7 +488,7 @@ const CARDINAL_TO_LANG = {
|
|||
hebrew: ['he'],
|
||||
persian: ['fa'],
|
||||
french: ['fr', 'pt'],
|
||||
russian: ['ru']
|
||||
russian: ['ru','uk']
|
||||
}
|
||||
|
||||
const CARDINAL_TYPES = {
|
||||
|
@ -536,7 +536,8 @@ const ORDINAL_TO_LANG = {
|
|||
hungarian: ['hu'],
|
||||
italian: ['it'],
|
||||
one: ['fr', 'lo', 'ms'],
|
||||
swedish: ['sv']
|
||||
swedish: ['sv'],
|
||||
ukranian: ['uk']
|
||||
};
|
||||
|
||||
const ORDINAL_TYPES = {
|
||||
|
@ -551,6 +552,12 @@ const ORDINAL_TYPES = {
|
|||
return 5;
|
||||
},
|
||||
|
||||
ukranian(n) {
|
||||
const n1 = n % 10, n2 = n % 100;
|
||||
if ( n1 === 3 && n2 !== 13 ) return 3;
|
||||
return 5;
|
||||
},
|
||||
|
||||
hungarian: n => (n === 1 || n === 5) ? 1 : 5,
|
||||
italian: n => (n === 11 || n === 8 || n === 80 || n === 800) ? 4 : 5,
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue