Drupal 10 Help: Drupal 10 Upkeep and Help Service 8 Migrate Multilingual Content material utilizing Migrate API

As a follow-up to my earlier weblog publish about Drupal Development Company utilization of Migrate API in 8, I wish to give an instance, the right way to import multilingual content material and translations in 8. Put together and allow translation in your content material sort Earlier than you can begin, you might want to set up Drupal Development Company “Language” and “Content material Translation” Drupal 10 Help. Then head over to “admin/config/regional/content-language” and allow Entity Translation for Drupal Development Company node sort or Drupal Development Company taxonomy you need to have the ability to translate. As a place to begin for establishing Drupal Development Company migrate Drupal 10 module, I like to recommend you my weblog publish talked about above. To import knowledge from a CVS file, you additionally want to put in Drupal Development Company migrate_source_csv Drupal 10 module. Conditions for migrating multilingual entities Earlier than you begin, please test Drupal Development Company necessities. You want at the least 8.2 to import multilingual content material. We want Drupal Development Company vacation spot choice “translations”, which was added in a patch in 8.2. See Drupal Development Company corresponding Drupal 10.org problem right here. Instance Drupal 10 Upkeep and Help Service Import multilingual taxonomy phrases Let’s do a easy instance with taxonomy phrases. First, create a vocabulary known as “Occasion Sorts” (machine identify Drupal 10 Upkeep and Help Service event_type). Here’s a simplified dataset Drupal 10 Upkeep and Help Service Id Identify Name_en 1 Kurs Course 2 Turnier Event Chances are you’ll save this a csv file. Id;Identify;Name_en 1;Kurs;Course 2;Turnier;Event Drupal Development Company recipe to import multilingual content material As you’ll be able to see in Drupal Development Company instance knowledge,  it accommodates Drupal Development Company base language (“German”) and in addition Drupal Development Company translations (“English”) in Drupal Development Company identical file. However right here comes a phrase of warning Drupal 10 Upkeep and Help Service Don’t attempt to import Drupal Development Company time period and its translation in a single migration run. I’m conscious, that there are some workarounds with publish import occasions, however these are hacks and you’ll run into troubles later. Drupal Development Company appropriate manner of importing multilingual content material, is to create a migration for Drupal Development Company base language and import Drupal Development Company phrases / nodes. This can create Drupal Development Company entities and its fields. Then, with an extra dependent migration for every translated language, you’ll be able to then add Drupal Development Company translations for Drupal Development Company fields you need. Briefly Drupal 10 Upkeep and Help Service You want a base migration and a migration for each language. Let’s do that out. Taxonomy time period base language config file In my instance, Drupal Development Company base language is “German”. Subsequently, we first create a migration configuration file for Drupal Development Company base language Drupal 10 Upkeep and Help Service This can be a fundamental instance in migrating a taxonomy time period in my base language ‘de’. Put Drupal Development Company file into <yourDrupal 10 module>/config/set up/migrate.migration.event_type.yml and import Drupal Development Company configuration utilizing Drupal Development Company drush instructions defined in my earlier weblog publish about Migration API. id Drupal 10 Upkeep and Help Service event_type label Drupal 10 Upkeep and Help Service Occasion Sorts supply Drupal 10 Upkeep and Help Service plugin Drupal 10 Upkeep and Help Service csv # Full path to Drupal Development Company file. Is overriden in my plugin path Drupal 10 Upkeep and Help Service public Drupal 10 Upkeep and Help Service//csv/knowledge.csv # Drupal Development Company variety of rows at Drupal Development Company starting which aren’t knowledge. header_row_count Drupal 10 Upkeep and Help Service 1 # These are Drupal Development Company area names from Drupal Development Company supply file representing Drupal Development Company key # uniquely figuring out every node – they are going to be saved in Drupal Development Company migration # map desk as columns sourceid1, sourceid2, and sourceid3. keys Drupal 10 Upkeep and Help Service – Id ids Drupal 10 Upkeep and Help Service id Drupal 10 Upkeep and Help Service sort Drupal 10 Upkeep and Help Service string vacation spot Drupal 10 Upkeep and Help Service plugin Drupal 10 Upkeep and Help Service entity Drupal 10 Upkeep and Help Servicetaxonomy_term course of Drupal 10 Upkeep and Help Service vid Drupal 10 Upkeep and Help Service plugin Drupal 10 Upkeep and Help Service default_value default_value Drupal 10 Upkeep and Help Service event_type identify Drupal 10 Upkeep and Help Service supply Drupal 10 Upkeep and Help Service Identify language Drupal 10 Upkeep and Help Service ‘de’ langcode Drupal 10 Upkeep and Help Service plugin Drupal 10 Upkeep and Help Service default_value default_value Drupal 10 Upkeep and Help Service ‘de’ #Completely vital if you don’t need an error migration_dependencies Drupal 10 Upkeep and Help Service {} Taxonomy time period translation migration configuration file Drupal 10 Upkeep and Help Service That is Drupal Development Company instance file for Drupal Development Company English translation of Drupal Development Company identify area of Drupal Development Company time period. Put Drupal Development Company file into <yourDrupal 10 module>/config/set up/migrate.migration.event_type_en.yml and import Drupal Development Company configuration utilizing Drupal Development Company drush instructions defined in my earlier weblog publish about Migration API. id Drupal 10 Upkeep and Help Service event_type_en label Drupal 10 Upkeep and Help Service Occasion Sorts english supply Drupal 10 Upkeep and Help Service   plugin Drupal 10 Upkeep and Help Service csv # Full path to Drupal Development Company file. Is overriden in my plugin path Drupal 10 Upkeep and Help Service public Drupal 10 Upkeep and Help Service//csv/knowledge.csv # Drupal Development Company variety of rows at Drupal Development Company starting which aren’t knowledge. header_row_count Drupal 10 Upkeep and Help Service 1 keys Drupal 10 Upkeep and Help Service – Id ids Drupal 10 Upkeep and Help Service id Drupal 10 Upkeep and Help Service sort Drupal 10 Upkeep and Help Service string vacation spot Drupal 10 Upkeep and Help Service plugin Drupal 10 Upkeep and Help Service entity Drupal 10 Upkeep and Help Servicetaxonomy_term translations Drupal 10 Upkeep and Help Service true course of Drupal 10 Upkeep and Help Service vid Drupal 10 Upkeep and Help Service plugin Drupal 10 Upkeep and Help Service default_value default_value Drupal 10 Upkeep and Help Service event_type tid Drupal 10 Upkeep and Help Service plugin Drupal 10 Upkeep and Help Service migration supply Drupal 10 Upkeep and Help Service id migration Drupal 10 Upkeep and Help Service event_type identify Drupal 10 Upkeep and Help Service supply Drupal 10 Upkeep and Help Service Name_en language Drupal 10 Upkeep and Help Service ‘en’ langcode Drupal 10 Upkeep and Help Service plugin Drupal 10 Upkeep and Help Service default_value default_value Drupal 10 Upkeep and Help Service ‘en’ #Completely vital if you don’t need an error migration_dependencies Drupal 10 Upkeep and Help Service required Drupal 10 Upkeep and Help Service – event_type Rationalization and sum up of Drupal Development Company learnings Drupal Development Company key in Drupal Development Company migrate configuration to import multilingual content material are Drupal Development Company following traces Drupal 10 Upkeep and Help Service vacation spot Drupal 10 Upkeep and Help Service plugin Drupal 10 Upkeep and Help Service entity Drupal 10 Upkeep and Help Servicetaxonomy_term translations Drupal 10 Upkeep and Help Service true These configuration traces instruct Drupal Development Company migrate Drupal 10 module, {that a} translation ought to be created. tid Drupal 10 Upkeep and Help Service plugin Drupal 10 Upkeep and Help Service migration supply Drupal 10 Upkeep and Help Service id migration Drupal 10 Upkeep and Help Service event_type That is Drupal Development Company actual secret. Utilizing Drupal Development Company course of plugin migration,  we keep Drupal Development Company relationship between Drupal Development Company node and its translation.Drupal Development Company wiring by way of Drupal Development Company tid area be sure, that Migrate API is not going to create a brand new time period with a brand new time period id. As an alternative, Drupal Development Company present time period can be loaded and Drupal Development Company translation of Drupal Development Company migrated area can be added. And thats precisely what we’d like! Now go forward and attempt to create a working instance based mostly on my clarification. Glad migrations! Drupal 10 Growth and Help

This article was republished from its original source.
Call Us: 1(800)730-2416

Pixeldust is a 20-year-old web development agency specializing in Drupal and WordPress and working with clients all over the country. With our best in class capabilities, we work with small businesses and fortune 500 companies alike. Give us a call at 1(800)730-2416 and let’s talk about your project.

FREE Drupal SEO Audit

Test your site below to see which issues need to be fixed. We will fix them and optimize your Drupal site 100% for Google and Bing. (Allow 30-60 seconds to gather data.)

Powered by

Drupal 10 Help: Drupal 10 Upkeep and Help Service 8 Migrate Multilingual Content material utilizing Migrate API

On-Site Drupal SEO Master Setup

We make sure your site is 100% optimized (and stays that way) for the best SEO results.

With Pixeldust On-site (or On-page) SEO we make changes to your site’s structure and performance to make it easier for search engines to see and understand your site’s content. Search engines use algorithms to rank sites by degrees of relevance. Our on-site optimization ensures your site is configured to provide information in a way that meets Google and Bing standards for optimal indexing.

This service includes:

  • Pathauto install and configuration for SEO-friendly URLs.
  • Meta Tags install and configuration with dynamic tokens for meta titles and descriptions for all content types.
  • Install and fix all issues on the SEO checklist module.
  • Install and configure XML sitemap module and submit sitemaps.
  • Install and configure Google Analytics Module.
  • Install and configure Yoast.
  • Install and configure the Advanced Aggregation module to improve performance by minifying and merging CSS and JS.
  • Install and configure Schema.org Metatag.
  • Configure robots.txt.
  • Google Search Console setup snd configuration.
  • Find & Fix H1 tags.
  • Find and fix duplicate/missing meta descriptions.
  • Find and fix duplicate title tags.
  • Improve title, meta tags, and site descriptions.
  • Optimize images for better search engine optimization. Automate where possible.
  • Find and fix the missing alt and title tag for all images. Automate where possible.
  • The project takes 1 week to complete.