# frozen_string_literal: true

# == Schema Information
#
# Table name: languages
#
#  id            :integer          not null, primary key
#  code          :string           not null
#  name          :string           not null
#  created_at    :datetime
#  updated_at    :datetime
#  actionkit_uri :string
#

FactoryBot.define do
  factory :language do
    code { 'en' }
    name { 'English' }
    actionkit_uri { '/rest/v1/language/102/' }

    trait :english

    trait :french do
      code { 'fr' }
      name { 'French' }
    end

    trait :spanish do
      code { 'es' }
      name { 'Spanish' }
    end

    trait :german do
      code { 'de' }
      name { 'German' }
    end

    trait :portuguese do
      code { 'pt' }
      name { 'Portuguese' }
    end

    trait :nederlands do
      code { 'nl' }
      name { 'Nederlands' }
    end
  end
end

# frozen_string_literal: true

# == Schema Information
#
# Table name: languages
#
#  id            :integer          not null, primary key
#  code          :string           not null
#  name          :string           not null
#  created_at    :datetime
#  updated_at    :datetime
#  actionkit_uri :string
#

FactoryBot.define do
  factory :language do
    code { 'en' }
    name { 'English' }
    actionkit_uri { '/rest/v1/language/102/' }

    trait :english

    trait :french do
      code { 'fr' }
      name { 'French' }
    end

    trait :spanish do
      code { 'es' }
      name { 'Spanish' }
    end

    trait :german do
      code { 'de' }
      name { 'German' }
    end

    trait :portuguese do
      code { 'pt' }
      name { 'Portuguese' }
    end

    trait :nederlands do
      code { 'nl' }
      name { 'Dutch' }
    end
  end
end

Update language value for NL
Update language value for NL
