Answers.Body: <p>When you register/save the user you need to set their <code>preferredLocale</code>, so Craft adjusts the verification URL sent with the activation email accordingly. Craft uses the primary locale for a user who doesn’t have a preferred locale set.</p>
  
  <p>You can do this using a hidden input field in the registration form, or via a <code>users.beforeSaveUser</code> event listener.</p>
  
  <pre><code>&lt;input type="hidden" name="preferredLocale" value="{{ craft.locale }}"&gt;
  </code></pre>
  
  <p>Once your users have a preferred locale set, your localized <code>activateAccountSuccessPath</code> config should work.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-07-19T09:15:46.737Z
Answers.Text: thanks for helping to solve my issue! Your code works fine and do what i need.
Answers.UserDisplayName: Berk Can Demir
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-07-19T08:41:36.453Z
Answers.LastActivityDate: 2018-07-19T08:41:36.453Z
Answers.UserDisplayName: carlcs
Body: <p>I have a website with Craft CMS 2 and this site has 2 diffrent languages. </p>
  
  <p>There is no problem with sending e-mail for account activation for each language but when a user tries to activate his/her account via e-mail for my second language which is English they see English mail template but link directs them to my first and default language which is Turkish. </p>
  
  <p>Same problem with the "Forgot my password" link. I tried to add array to <code>activateAccountSuccessPath</code> for each local like <code>siteUrl</code> but could not take any solution. Always directs to <code>tr</code> locale after activation from English mail template.</p>
  
Tags: <users><activation>
Title: User activation success page localization problem
ThreadText: # User activation success page localization problem
  
  (Asked by: username_0 on 2018-07-19)
  
  I have a website with Craft CMS 2 and this site has 2 diffrent languages.
  
  There is no problem with sending e-mail for account activation for each language but when a user tries to activate his/her account via e-mail for my second language which is English they see English mail template but link directs them to my first and default language which is Turkish.
  
  Same problem with the "Forgot my password" link. I tried to add array to `activateAccountSuccessPath` for each local like `siteUrl` but could not take any solution. Always directs to `tr` locale after activation from English mail template.
  
  **Tags:** users, activation
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-07-19. Score: 1 | Accepted answer
  
  When you register/save the user you need to set their `preferredLocale`, so Craft adjusts the verification URL sent with the activation email accordingly. Craft uses the primary locale for a user who doesn’t have a preferred locale set.
  
  You can do this using a hidden input field in the registration form, or via a `users.beforeSaveUser` event listener.
  
  ```
  <input type="hidden" name="preferredLocale" value="{{ craft.locale }}">
  
  ```
  
  Once your users have a preferred locale set, your localized `activateAccountSuccessPath` config should work.
  
  > **Comments:**
  > **username_0**: thanks for helping to solve my issue! Your code works fine and do what i need.  
  
  ---
  
  