Skip to content

Commit

Permalink
Close jdm-contrib#927: Break SupportLanguageKeys into 1 per line (jdm…
Browse files Browse the repository at this point in the history
  • Loading branch information
tupaschoal authored Aug 22, 2021
1 parent baf62e9 commit 00e668f
Showing 1 changed file with 47 additions and 7 deletions.
54 changes: 47 additions & 7 deletions script/validate_json.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,53 @@ module ExitCodes

SupportedDifficulties = ["easy", "medium", "hard", "impossible"]
SupportedEntryKeys = ["difficulty", "domains", "email", "email_body", "email_subject", "meta", "name", "notes", "url"]
SupportedLanguageKeys = ["about", "contribute", "defaultnote_easy", "defaultnote_email", "difficulty", "difficulty_easy",
"difficulty_hard", "difficulty_impossible", "difficulty_medium", "extension", "extensionguide",
"extensionp1", "extensionp2", "extensionp3", "extensionp4", "extensionp5", "extensionp6",
"footercredits", "guide", "guideeasy", "guideexplanations", "guidehard", "guideimpossible",
"guidemedium", "hideinfo", "jgmd", "mikerogers", "name", "noinfo", "noresults", "noresultshelp",
"popular", "pullrequest", "reset", "search", "sendmail", "showinfo", "tagline", "title",
"twitter", "whatisthis", "whatisthis1", "whatisthis2", "whatisthis3", "whatisthis4"]
SupportedLanguageKeys = [
"about",
"contribute",
"defaultnote_easy",
"defaultnote_email",
"difficulty",
"difficulty_easy",
"difficulty_hard",
"difficulty_impossible",
"difficulty_medium",
"extension",
"extensionguide",
"extensionp1",
"extensionp2",
"extensionp3",
"extensionp4",
"extensionp5",
"extensionp6",
"footercredits",
"guide",
"guideeasy",
"guideexplanations",
"guidehard",
"guideimpossible",
"guidemedium",
"hideinfo",
"jgmd",
"mikerogers",
"name",
"noinfo",
"noresults",
"noresultshelp",
"popular",
"pullrequest",
"reset",
"search",
"sendmail",
"showinfo",
"tagline",
"title",
"twitter",
"whatisthis",
"whatisthis1",
"whatisthis2",
"whatisthis3",
"whatisthis4"
]

def get_supported_languages()
return translation_files = Dir.children('_data/trans/').map { |f| f.delete_suffix('.json') }
Expand Down

0 comments on commit 00e668f

Please sign in to comment.