<commit_before>require "thor"

require "translations/serializer"

module Translations
  class CLI < Thor
    class_option :directory, aliases: ["-d"], default: "config/locales", type: :string, desc: "Directory containing the translations"
    class_option :master, aliases: ["-m"], default: "en", type: :string, desc: "The master locale"

    desc "translate LOCALE [KEYS]", ""
    def translate locale, *keys
      @serializer = Serializer.new options.directory, options.master
      translations = @serializer.translations
<commit_msg>Add a description for translate<commit_after>require "thor"

require "translations/serializer"

module Translations
  class CLI < Thor
    class_option :directory, aliases: ["-d"], default: "config/locales", type: :string, desc: "Directory containing the translations"
    class_option :master, aliases: ["-m"], default: "en", type: :string, desc: "The master locale"

    desc "translate LOCALE [KEYS]", "Translate the KEYS into the given LOCALE"
    def translate locale, *keys
      @serializer = Serializer.new options.directory, options.master
      translations = @serializer.translations

{'fraction_non_alphanumeric': 0.1166077738515901, 'fraction_numerical': 0.0, 'mean_word_length': 4.751269035532995, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '625987', 'n_tokens_mistral': 329, 'n_tokens_neox': 315, 'n_words': 107}