Sha256: d104d89b01ef17078b3887027a5e8249769b56385c72e8644b3e6494e6c57216

Contents?: true

Size: 410 Bytes

Versions: 1

Compression:

Stored size: 410 Bytes

Contents

# frozen_string_literal: true
require_relative 'swift_generator'
module KCommercial
  module Resources
    class I18nsGenerator < SwiftGenerator

      private

      def class_name
        "I18ns"
      end

      def key_to_code(key)
        <<EOF
public class func #{key_to_function_name(key)}() -> String? {
    return R.default.i18n(for: "#{key}", env: Enviroment.shared)
}
EOF
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
KCommercialPipeline-0.2.5.1 lib/KCommercialPipeline/core/resource/swift/i18n_generetor.rb