ಮೋಡ್ಯೂಲ್:ConvertDigit
ತೊಜುನ
-- Return input text after converting any month names.
local en_months = {
['January'] = 'ಜನವರಿ',
['january'] = 'ಜನವರಿ',
['February'] = 'ಪೆಬ್ರವರಿ',
['february'] = 'ಪೆಬ್ರವರಿ',
['March'] = 'ಮಾರ್ಚಿ',
['march'] = 'ಮಾರ್ಚಿ',
['April'] = 'ಎಪ್ರಿಲ್',
['april'] = 'ಎಪ್ರಿಲ್',
['May'] = 'ಮೇ',
['may'] = 'ಮೇ',
['June'] = 'ಜೂನ್',
['june'] = 'ಜೂನ್',
['July'] = 'ಜುಲಾಯಿ',
['july'] = 'ಜುಲಾಯಿ',
['August'] = 'ಆಗೋಸ್ಟು',
['august'] = 'ಆಗೋಸ್ಟು',
['September'] = 'ಸಪ್ಟಂಬರ್',
['september'] = 'ಸಪ್ಟಂಬರ್',
['October'] = 'ಅಕ್ಟೋಬರ್',
['october'] = 'ಅಕ್ಟೋಬರ್',
['November'] = 'ನವಂಬರ್',
['november'] = 'ನವಂಬರ್',
['December'] = 'ದಸಂಬರ್',
['december'] = 'ದಸಂಬರ್',
}
local function _main(input)
-- Callable from another module.
input = input or ''
return (input:gsub('%a+', en_months))
end
local function main(frame)
-- Callable from #invoke or from a template.
return _main(frame.args[1] or frame:getParent().args[1])
end
return { main = main, _main = _main }