Module:scripts/by name/documentation
This module exports a table that converts the canonical name of a script to the corresponding code:
local script_name = mw.loadData("Module:scripts/canonical names")["Latin"] --> "Latn"
It covers languages in Module:scripts/data.
This module is up-to-date and correct according to Module:data consistency check.
If JavaScript is enabled, you can update the module by pressing the button at the top of the documentation page.
See also Module:scripts/code to canonical name.