Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-05-08T08:16:03.493Z
Answers.Text: 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?
Answers.UserDisplayName: Rias
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-05-08T15:52:15.123Z
Answers.Text: Ah, I see you updated the question. I'm not sure about Craft 3, but I suspect it's different.
Answers.UserDisplayName: Stephen Lewis
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-07-12T04:45:03.267Z
Answers.Text: I'm pretty sure that the above only ever applied to the `siteUrl` and wasn't generalized to work for any setting
Answers.UserDisplayName: andrew.welch
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-05-06T19:20:57.923Z
Answers.LastActivityDate: 2017-05-08T15:53:50.117Z
Answers.LastEditDate: 2017-05-08T15:53:50.117Z
Answers.UserDisplayName: Stephen Lewis
Body: <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>
  
Tags: <plugin-development><settings><craft3>
Title: Plugin settings per site/locale
ThreadText: # 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](https://craftcms.com/docs/localization-guide#step-4-define-your-site-uRLs):
  
  ```
  <?php
  
  return [
      'flagName' => [
          '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  
  
  ---
  
  