Content deleted Content added
Jackmcbarn (talk | contribs) add pairs support |
Jackmcbarn (talk | contribs) basic tests |
||
Line 42:
if type(k) == 'string' then
local to = args.to[k]
if type
for _,v in ipairs(to) do
local retval = args.src[v]
Line 98:
function p.main(frame)
local args = {
uno = '#FF0000',
eins = '#ff0000',
dos = '#FF8000',
zwei = '#ff7f00',
tres = '#ffff00',
drei = '#FFFF00',
three = 'yellow'
}
local to = {
one = 'uno',
two = { 'dos', 'zwei' },
three = 'drei'
}
local wrapper = translationwrapper.create{src = args, to = to}
return wrapper
end
|