title: Model for localizable attribute values in Core Data Entity?
body: <p>If I want to create a entity in Core Data that has attributes with values that should be localizable I'm wondering how the most efficient way would look like?</p>
  
  <p>As a example let's assume the following structure:</p>
  
  <pre><code>Book
      name (localizable)
      description (localizable)
      author
  </code></pre>
  
  <p>An localized book entry would look like this: </p>
  
  <pre><code>name:   "A great novel" (en/international),
          "Ein großartiger Roman" (de), 
          "Un grand roman" (fr)
  
  description:
          "Great!" (en/international),
          "Großartig!" (de), 
          "Grand!" (fr)
  
  author: "John Smith"
  </code></pre>
  
  <p>In a SQL/SQLite implementation I would use two tables. A <em>books</em> table containing the book information (author, the english/international name and description) and the <em>localizationBooks</em> table that is related using the primary key of the corresponding book. This second table contains the localized name and description values as well as the languageCode. This would allow to have a scalable number of localizations.</p>
  
  <p>For fetching the data I would use a </p>
  
  <pre><code>SELECT COALESCE(localizationBooks.name, books.name)
  </code></pre>
  
  <p>to get the actual values for the given language code. This allows to use the international english value as fallback for unsupported languages.</p>
  
  <p>Would this require a separate entity in Core Data (e.g. BookLocalization) that has a relation to the Book or is there another recommended way of doing this?</p>