Chuvash localization
By Anatoly Mironov
Recently I wanted to add Chuvash localization to the jQuery UI datepicker. Unfortunately, my pull request was rejected. The reason is that jQuery UI will be using Globalize framework: The jQuery Globalize framework relies on CLDR, so What is Unicode CLDR (Common Locale Data Repository)?
The Unicode CLDR provides key building blocks for software to support the world’s languages, with the largest and most extensive standard repository of locale data available. This data is used by a wide spectrum of companies for their software internationalization and localization, adapting software to the conventions of different languages for such common software tasks
Today there is no Chuvash locale in the CLDR project. So it it is time to add it. I have filed a ticket on CLDR.
Other Chuvash localization projects
A Chuvash locale exists in a couple of projects:
- Gnome (actual cv_RU file)
- momentjs, the most powerful date framework for javascript.
- LibreOffice (OpenOffice), done by Nikolay Plotnikov (chuvash.org)
Code
Just to be complete, here is the Chuvash locale for jQuery UI datepicker that I wanted to add: [code language=“javascript” title=“cv.js”] /* Written by Anatoly Mironov (@mirontoli). */ (function( factory ) { if ( typeof define === "function" && define.amd ) { // AMD. Register as an anonymous module. define([ "../datepicker" ], factory ); } else { // Browser globals factory( jQuery.datepicker ); } }(function( datepicker ) { datepicker.regional[‘cv’] = { closeText: ‘Хуп’, prevText: ‘<Кая’, nextText: ‘Мала>’, currentText: ‘Паян’, monthNames: [‘кӑрлач’,‘нарӑс’,‘пуш’,‘ака’,‘ҫу’,‘ҫӗртме’, ‘утӑ’,‘ҫурла’,‘авӑн’,‘юпа’,‘чӳк’,‘раштав’], monthNamesShort: [‘кӑр’,‘нар’,‘пуш’,‘ака’,‘ҫу’,‘ҫӗр’, ‘утӑ’,‘ҫур’,‘авн’,‘юпа’,‘чӳк’,‘раш’], dayNames: [‘вырсарникун’,‘тунтикун’,‘ытларикун’,‘юнкун’,‘кӗҫнерникун’,‘эрнекун’,‘шӑматкун’], dayNamesShort: [‘выр’,‘тун’,‘ытл’,‘юнк’,‘кӗҫ’,‘эрн’,‘шӑм’], dayNamesMin: [‘Вр’,‘Тн’,‘Ыт’,‘Юн’,‘Кҫ’,‘Эр’,‘Шм’], weekHeader: ‘Эрне’, dateFormat: ‘dd.mm.yy’, firstDay: 1, isRTL: false, showMonthAfterYear: false, yearSuffix: ‘’}; datepicker.setDefaults(datepicker.regional[‘cv’]); return datepicker.regional[‘cv’]; })); [/code]