{"record":{"id":"d68d1e36bd7ad46a","repo":"RubyMoney/money","slug":"i18n-not-found","errorCode":null,"errorMessage":"I18n not found","messagePattern":"I18n not found","errorType":"exception","errorClass":"Money::LocaleBackend::NotSupported","httpStatus":null,"severity":"error","filePath":"lib/money/locale_backend/i18n.rb","lineNumber":16,"sourceCode":"# frozen_string_literal: true\n\nrequire \"money/locale_backend/base\"\n\nclass Money\n  module LocaleBackend\n    class I18n < Base\n      KEY_MAP = {\n        thousands_separator: :delimiter,\n        decimal_mark: :separator,\n        symbol: :unit,\n        format: :format,\n      }.freeze\n\n      def initialize\n        raise NotSupported, \"I18n not found\" unless defined?(::I18n)\n\n        super\n      end\n\n      def lookup(key, _)\n        i18n_key = KEY_MAP[key]\n\n        ::I18n.t i18n_key, scope: \"number.currency.format\", raise: true\n      rescue ::I18n::MissingTranslationData\n        ::I18n.t i18n_key, scope: \"number.format\", default: nil\n      end\n    end\n  end\nend\n","sourceCodeStart":1,"sourceCodeEnd":31,"githubUrl":"https://github.com/RubyMoney/money/blob/26e2829c34f165847040a5a40d4d2daa5eb72927/lib/money/locale_backend/i18n.rb#L1-L31","documentation":"Error \"I18n not found\" thrown in RubyMoney/money.","triggerScenarios":"Thrown at lib/money/locale_backend/i18n.rb:16 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"26e2829c34f165847040a5a40d4d2daa5eb72927","analyzedAt":"2026-08-23T17:41:07.306Z","schemaVersion":2},"datasetVersion":"2026-08-23T21:17:23.414Z"}