Sha256: 2f01c30dc389b591dc926f5a3872fe302fbb282b3eba9b5a3e6f6071db123f7d
Contents?: true
Size: 783 Bytes
Versions: 28
Compression:
Stored size: 783 Bytes
Contents
# frozen_string_literal: true module Decidim module Core # This type represents a localized string in a single language. class LocalizedStringType < Decidim::Api::Types::BaseObject description "Represents a particular translation of a LocalizedStringType" field :locale, GraphQL::Types::String, "The standard locale of this translation.", null: false field :text, GraphQL::Types::String, "The content of this translation.", null: true field :machine_translated, GraphQL::Types::Boolean, "Whether this string is machine translated or not.", null: false def machine_translated if object.respond_to?(:machine_translated) object.machine_translated.present? else false end end end end end
Version data entries
28 entries across 28 versions & 1 rubygems