<h3>Edit</h3>

<p>OP updated the question to specify Craft <em>3</em>, so this is no longer relevant.</p>

<hr>

<p>You can define a separate value for each locale, as described in <a href="https://craftcms.com/docs/localization-guide#step-4-define-your-site-uRLs" rel="nofollow noreferrer">the localisation documentation</a>:</p>

<pre><code>&lt;?php

return [
    'flagName' =&gt; [
        'de' =&gt; 'Bundesflagge',
        'fr' =&gt; 'Tricolore',
    ],
];
</code></pre>

CC BY-SA 3.0
2017-05-08T08:16:03.493Z
I can't seem to get this to work, I'm trying to do this in Craft 3 though, are you sure it's the same?
Rias
CC BY-SA 3.0
2017-05-08T15:52:15.123Z
Ah, I see you updated the question. I'm not sure about Craft 3, but I suspect it's different.
Stephen Lewis
CC BY-SA 4.0
2018-07-12T04:45:03.267Z
I'm pretty sure that the above only ever applied to the `siteUrl` and wasn't generalized to work for any setting
andrew.welch
CC BY-SA 3.0
2017-05-06T19:20:57.923Z
2017-05-08T15:53:50.117Z
2017-05-08T15:53:50.117Z
Stephen Lewis
<p>I'm trying to make a plugin in Craft 3 but want it to be possible to set different settings for each separate site or locale. How would I go about doing this?</p>

<plugin-development><settings><craft3>
Plugin settings per site/locale
# Plugin settings per site/locale

(Asked by: username_0 on 2017-05-06)

I'm trying to make a plugin in Craft 3 but want it to be possible to set different settings for each separate site or locale. How would I go about doing this?

**Tags:** plugin-development, settings, craft3

---

## 1 answers

### Answer by username_1 on 2017-05-06. Score: 1

Edit
OP updated the question to specify Craft 3, so this is no longer relevant.

You can define a separate value for each locale, as described in the localisation documentation:
 [
        'de' => 'Bundesflagge',
        'fr' => 'Tricolore',
    ],
];

> **Comments:**
> **username_0**: I can't seem to get this to work, I'm trying to do this in Craft 3 though, are you sure it's the same?  
> **username_1**: Ah, I see you updated the question. I'm not sure about Craft 3, but I suspect it's different.  
> **username_2**: I'm pretty sure that the above only ever applied to the `siteUrl` and wasn't generalized to work for any setting  

---

