Module: Spree::Api::V3::Admin::Translatable
- Extended by:
- ActiveSupport::Concern
- Included in:
- CategorySerializer, OptionTypeSerializer, ProductSerializer
- Defined in:
- app/serializers/concerns/spree/api/v3/admin/translatable.rb
Overview
Adds the opt-in per-locale translation matrix to an admin serializer
for a model that includes Spree::TranslatableResource. Include it in
every translatable resource's admin serializer (product, option type,
category, …) so the ?expand=translations surface stays consistent
and defined in one place.