mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 01:36:13 +00:00
Add support for local language codes in updatetx.rb
This commit is contained in:
parent
9bd1489652
commit
530537e4c0
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ else
|
||||||
lang = ARGV[0]
|
lang = ARGV[0]
|
||||||
end
|
end
|
||||||
|
|
||||||
lang = lang.gsub(/[^a-z]/,'')
|
lang = lang.gsub(/[^a-zA-Z_]/,'')
|
||||||
|
|
||||||
if !File.exist?('_translations/' + lang + '.yml')
|
if !File.exist?('_translations/' + lang + '.yml')
|
||||||
print "Wrong language code. \n"
|
print "Wrong language code. \n"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue