<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>I18 on 瓶子裡的小狐狸</title>
    <link>https://szeching.com/tags/i18/</link>
    <description>Recent content in I18 on 瓶子裡的小狐狸</description>
    <generator>Hugo</generator>
    <language>zh-Hant</language>
    <lastBuildDate>Fri, 08 Apr 2022 12:29:00 +0000</lastBuildDate>
    <atom:link href="https://szeching.com/tags/i18/rss" rel="self" type="application/rss+xml" />
    <item>
      <title>Drupal 9 多語言站點解決 Paragraphs 字段在custom block 中I18翻譯無法正確顯示問題</title>
      <link>https://szeching.com/fix-paragraphs-field-translate-failed-in-drupal-9-custom-block/</link>
      <pubDate>Fri, 08 Apr 2022 12:29:00 +0000</pubDate>
      <guid>https://szeching.com/fix-paragraphs-field-translate-failed-in-drupal-9-custom-block/</guid>
      <description>&lt;p&gt;Drupal 9 多語言站點啟用 &lt;a href=&#34;https://www.drupal.org/project/paragraphs&#34; target=&#34;_blank&#34;&gt;Paragraphs 模組&lt;/a&gt;，如果在 &lt;a href=&#34;https://www.drupal.org/docs/core-modules-and-themes/core-modules/block-module/managing-blocks&#34; target=&#34;_blank&#34;&gt;custom block&lt;/a&gt; 中使用了 paragraphs 類型的字段 ，會遇到字段內文字的翻譯無法顯示問題。該 paragraphs 字段的內容始終加載的是 default 的語言內容（通常是英文），需要在custom module 代碼中使用 &lt;code&gt;hook_preprocess_block()&lt;/code&gt; 修改一下。&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
