Sha256: 2521702188a70c8f0208c3f061dd2350aac756559cedcd972b3cb858fffde005

Contents?: true

Size: 1.72 KB

Versions: 71

Compression:

Stored size: 1.72 KB

Contents

{
  "schema_type": "object",
  "schema_version": "1.1",
  "name": "t",
  "path": "packages/ree_i18n/package/ree_i18n/functions/t.rb",
  "mount_as": "fn",
  "class": "ReeI18n::T",
  "factory": null,
  "methods": [
    {
      "doc": "Translates, pluralizes and interpolates a given key using a given locale,\nscope, and default, as well as interpolation values.\n\nFull args example:\n  t(\n    :salutation,\n    {gender: 'w', name: 'Smith'},\n    {\n      throw: false,\n      raise: false,\n      locale: :en,\n      scope: :people,\n      default: :person,\n      deep_interpolation: true,\n      count: 1,\n      exception_handler?: Proc.new { |*args| ...},\n      default_by_locale: :en\n    }\n  )",
      "throws": [
        "ArgumentError",
        "I18n::Disabled",
        "I18n::MissingTranslation",
        "I18n::InvalidLocale",
        "I18n::ArgumentError",
        "UncaughtThrowError",
        "I18n::InvalidPluralizationData"
      ],
      "return": "Or[String, Hash]",
      "args": [
        {
          "arg": "key",
          "arg_type": "opt",
          "type": "Nilor[Or[String, Symbol]]"
        },
        {
          "arg": "context",
          "arg_type": "opt",
          "type": "HashOf[Or[String, Symbol], Any]"
        },
        {
          "arg": "options",
          "arg_type": "keyrest",
          "type": "Ksplat[:throw? => Bool, :raise? => Bool, :locale? => Symbol, :scope? => Or[String, Symbol], :default? => Or[String, Symbol], :deep_interpolation? => Bool, :count? => Integer, :exception_handler? => Or[Symbol, Proc], :default_by_locale? => Or[Symbol]]"
        }
      ]
    }
  ],
  "links": [
    {
      "target": "except",
      "package_name": "ree_hash",
      "as": "except",
      "imports": [

      ]
    }
  ]
}

Version data entries

71 entries across 71 versions & 1 rubygems

Version Path
ree_lib-1.0.103 lib/ree_lib/packages/ree_i18n/schemas/ree_i18n/functions/t.schema.json
ree_lib-1.0.102 lib/ree_lib/packages/ree_i18n/schemas/ree_i18n/functions/t.schema.json
ree_lib-1.0.101 lib/ree_lib/packages/ree_i18n/schemas/ree_i18n/functions/t.schema.json
ree_lib-1.0.100 lib/ree_lib/packages/ree_i18n/schemas/ree_i18n/functions/t.schema.json
ree_lib-1.0.99 lib/ree_lib/packages/ree_i18n/schemas/ree_i18n/functions/t.schema.json
ree_lib-1.0.98 lib/ree_lib/packages/ree_i18n/schemas/ree_i18n/functions/t.schema.json
ree_lib-1.0.97 lib/ree_lib/packages/ree_i18n/schemas/ree_i18n/functions/t.schema.json
ree_lib-1.0.96 lib/ree_lib/packages/ree_i18n/schemas/ree_i18n/functions/t.schema.json
ree_lib-1.0.95 lib/ree_lib/packages/ree_i18n/schemas/ree_i18n/functions/t.schema.json
ree_lib-1.0.94 lib/ree_lib/packages/ree_i18n/schemas/ree_i18n/functions/t.schema.json
ree_lib-1.0.93 lib/ree_lib/packages/ree_i18n/schemas/ree_i18n/functions/t.schema.json
ree_lib-1.0.92 lib/ree_lib/packages/ree_i18n/schemas/ree_i18n/functions/t.schema.json
ree_lib-1.0.91 lib/ree_lib/packages/ree_i18n/schemas/ree_i18n/functions/t.schema.json
ree_lib-1.0.90 lib/ree_lib/packages/ree_i18n/schemas/ree_i18n/functions/t.schema.json
ree_lib-1.0.89 lib/ree_lib/packages/ree_i18n/schemas/ree_i18n/functions/t.schema.json
ree_lib-1.0.88 lib/ree_lib/packages/ree_i18n/schemas/ree_i18n/functions/t.schema.json
ree_lib-1.0.87 lib/ree_lib/packages/ree_i18n/schemas/ree_i18n/functions/t.schema.json
ree_lib-1.0.86 lib/ree_lib/packages/ree_i18n/schemas/ree_i18n/functions/t.schema.json
ree_lib-1.0.85 lib/ree_lib/packages/ree_i18n/schemas/ree_i18n/functions/t.schema.json
ree_lib-1.0.84 lib/ree_lib/packages/ree_i18n/schemas/ree_i18n/functions/t.schema.json