title: Localizing custom SiriKit intent
body: <p>My Xcode is v10 and I'm developing a custom intent for SiriKit, targeting iOS 12.</p>
  
  <p>In Xcode 10, custom intents are designed in .intentdefinition files, where you can define your own parameters for intent phrases as well as the title of the intent and Siri shortcut for that intent. Building a project with a .intentdefinition file makes Xcode automatically generate an INIntent derived class for that intent.</p>
  
  <p>My issue is that in order to support other languages than English so that the intent's title is show in the system's language in General > Siri &amp; Search when the user is able to manipulate shortcuts for custom intents, I need to provide localized intent title for my .intentdefinition file.</p>
  
  <p>When I try to add another language for my .intentdefinition file in the File Inspector and then build the project I get:</p>
  
  <p><code>
  duplicate output file '/Users/.../IntentDefinitionGenerated/Intents/MyCustomIntent.swift' on task: IntentDefinitionCodegen /Users/.../ru.lproj/Intents.intentdefinition
  </code></p>
  
  <p><strong>This is likely happening because Xcode sees multiple .intentdefinition files in <code>.lproj</code> folders and tries to generate a same named class for each of them.</strong></p>
  
  <p>How do I localize my .intentdefinition file for iOS 12?</p>