Answers.Body: <p>Completely untested, but something like this should work:</p>
  
  <pre><code>{{ !object.id ? (object.locale == "jp" ? "Japanese title" : "English title") : object.title) }}
  </code></pre>
  
  <p>Basically only run your logic if the entry doesn't have an ID yet (which new entries won't until they are saved).</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-11-20T14:55:26.330Z
Answers.Text: Thanks to your help this is what worked:
  
  ```{{ object.title ? object.title : (object.locale == "jp" ? "Japanese title" : "English title ") }}```
Answers.UserDisplayName: Mato
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-12-19T22:44:38.113Z
Answers.LastActivityDate: 2017-12-21T19:21:38.777Z
Answers.LastEditDate: 2017-12-21T19:21:38.777Z
Answers.UserDisplayName: Brad Bell
Body: <p>I have a situation where I wish to automatically set entry title based on locale entry was created in. This is what I use for title:</p>
  
  <p><code>{{ object.locale == "jp" ? "Japanese title" : "English title"}}</code></p>
  
  <p>This works fine but when I create an entry in Japanese locale and open it in English locale and resave it the title changes to "English title" and that's not what I want, I wish to preserve the original title. Is that possible somehow?</p>
  
Tags: <localization><titles>
Title: Prevent automatic title on resave
ThreadText: # Prevent automatic title on resave
  
  (Asked by: username_0 on 2017-12-19)
  
  I have a situation where I wish to automatically set entry title based on locale entry was created in. This is what I use for title:
  
  `{{ object.locale == "jp" ? "Japanese title" : "English title"}}`
  
  This works fine but when I create an entry in Japanese locale and open it in English locale and resave it the title changes to "English title" and that's not what I want, I wish to preserve the original title. Is that possible somehow?
  
  **Tags:** localization, titles
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-12-19. Score: 1 | Accepted answer
  
  Completely untested, but something like this should work:
  
  ```
  {{ !object.id ? (object.locale == "jp" ? "Japanese title" : "English title") : object.title) }}
  
  ```
  
  Basically only run your logic if the entry doesn't have an ID yet (which new entries won't until they are saved).
  
  > **Comments:**
  > **username_0**: Thanks to your help this is what worked:  ```{{ object.title ? object.title : (object.locale == "jp" ? "Japanese title" : "English title ") }}```  
  
  ---
  
  