<p>There's actually a <a href="https://github.com/craftcms/cms/issues/3554" rel="nofollow noreferrer">feature request</a> which describes what I'm trying to achieve.</p>

<p>It's doable in Craft 3.2 by enabling <code>Save entries to other sites in the same site group</code> and managing translations at field level.</p>

CC BY-SA 4.0
2019-05-11T07:46:58.160Z
2019-05-11T07:55:26.547Z
2019-05-11T07:55:26.547Z
Paul
<p>Add your sites in the CMS, under Settings > Sites.
You can setup the Base URL and language per site.</p>

CC BY-SA 4.0
2019-05-11T07:04:46.643Z
But how would Craft know that siteA.com/fr/product is an alternate locale for siteA.com/product? Shouldn't the relationship be defined somewhere for alternate URLs for SEO, language switch, etc...?
Paul
CC BY-SA 4.0
2019-05-12T11:15:47.843Z
Under Settings > Sections, you can edit a section and check 'Propagate entries accross all enabled sites'. That way, once you create an entry, it is created in all sites and you can switch between translations.
Richard
CC BY-SA 4.0
2019-05-21T03:40:37.497Z
Thanks, was actually looking to propagate across site groups only, which will be doable in Craft 3.2
Paul
CC BY-SA 4.0
2019-05-10T13:21:49.367Z
2019-05-10T13:21:49.367Z
Richard
<p>I'm trying to setup alternate locales for content across several sites. I have the following scenario:</p>

<pre><code>- Group siteA
  - siteA.com/product-1

- Group siteB
  - siteB.com/product-2
  - siteB.com/fr/product-2
</code></pre>

<p>Content remains the same within a site group, where an entry in one locale is a translation of an entry another locale (as in Craft 2). Other site groups will have the same sections, but different content and perhaps locales. Propagating entries will not work in this case.</p>

<p>It's a scenario I've seen mentioned <a href="https://craftcms.stackexchange.com/a/23751/576">elsewhere</a>, but I fail to understand the setup.</p>

<p>Is there a way to assign locales to multiple sites in <code>general.php</code> config the same way one would for <code>siteUrl</code>?</p>

<pre><code>'production' =&gt; [
  'siteUrl' =&gt; 'siteA.com',
  'siteB' =&gt; [
    'en_gb' =&gt; 'siteB.com',
    'fr' =&gt; 'siteB.com/fr/'
  ]
],
</code></pre>

<p>Perhaps with <code>alias</code>?</p>

<p><strong>Edit:</strong></p>

<p>Ideally it would be something like propagating entries amongst site groups but not all sites, so <code>product-2</code> would be propagated in siteB only.</p>

<localization><multi-site>
Mutiple sites and locales
# Mutiple sites and locales

(Asked by: username_0 on 2019-05-10)

I'm trying to setup alternate locales for content across several sites. I have the following scenario:
- Group siteA
  - siteA.com/product-1

- Group siteB
  - siteB.com/product-2
  - siteB.com/fr/product-2

Content remains the same within a site group, where an entry in one locale is a translation of an entry another locale (as in Craft 2). Other site groups will have the same sections, but different content and perhaps locales. Propagating entries will not work in this case.
It's a scenario I've seen mentioned elsewhere, but I fail to understand the setup.
Is there a way to assign locales to multiple sites in general.php config the same way one would for siteUrl?
'production' => [
  'siteUrl' => 'siteA.com',
  'siteB' => [
    'en_gb' => 'siteB.com',
    'fr' => 'siteB.com/fr/'
  ]
],

Perhaps with alias?
Edit:
Ideally it would be something like propagating entries amongst site groups but not all sites, so product-2 would be propagated in siteB only.

**Tags:** localization, multi-site

---

## 2 answers

### Answer by username_0 on 2019-05-11. Score: 0 | Accepted answer

There's actually a [feature request](https://github.com/craftcms/cms/issues/3554) which describes what I'm trying to achieve.

It's doable in Craft 3.2 by enabling `Save entries to other sites in the same site group` and managing translations at field level.


---

### Answer by username_1 on 2019-05-10. Score: 1

Add your sites in the CMS, under Settings > Sites.
You can setup the Base URL and language per site.

> **Comments:**
> **username_0**: But how would Craft know that siteA.com/fr/product is an alternate locale for siteA.com/product? Shouldn't the relationship be defined somewhere for alternate URLs for SEO, language switch, etc...?  
> **username_1**: Under Settings > Sections, you can edit a section and check 'Propagate entries accross all enabled sites'. That way, once you create an entry, it is created in all sites and you can switch between translations.  
> **username_0**: Thanks, was actually looking to propagate across site groups only, which will be doable in Craft 3.2  

---

