Keep derivatives of dev languahe close to the top

allow
en
en-GB

before alphabetical sorting

Aligns with existing and is more logical
This commit is contained in:
Dwayne Bailey 2024-09-18 21:03:48 +01:00
parent 960715c45a
commit 5751945f1d

View file

@ -232,7 +232,15 @@ module Twine
end
@language_codes[1..-1].each do |lang|
write_value(definition, lang, f)
if lang =~ /^#{dev_lang}/
write_value(definition, lang, f)
end
end
@language_codes[1..-1].each do |lang|
if not lang =~ /^#{dev_lang}/
write_value(definition, lang, f)
end
end
end
end