45,647
edits
No edit summary |
No edit summary |
||
Line 52: | Line 52: | ||
function export.tr(text, lang, sc) | function export.tr(text, lang, sc) | ||
for pat, repl in pairs(tt_lepik) do | for pat, repl in pairs(tt_lepik) do | ||
text = mw.ustring.gsub(text, pat, repl) | text = mw.ustring.gsub(mw.ustring.toNFD(text), pat, repl) | ||
end | end | ||
return mw.ustring.toNFC(text) | return mw.ustring.toNFC(text) |