title: Tackle Localization with Graphql
body: <p>In a json file, I have some fields that have a list of dictionaries with the locale and the translated text:  </p>
  
  <pre><code>description_localized: [
    {
        locale: "en-UK",
        value: "Read along"
     },
   {
         locale: "de-DE",
         value: "Lesen und"
     },
   {
          locale: "fr-FR",
          value: "Lis avec"
      },
  ]
  </code></pre>
  
  <p>There are other fields where there are two keys in the value key:</p>
  
  <pre><code>path_localized: [
      {
          locale: "de-DE",
          value: "{"identifier"=&gt;"", "value"=&gt;"http://path_6987.path"}"
      },
      {
          locale: "es-ES",
          value: "{"identifier"=&gt;"", "value"=&gt;"http://path_4685.path"}"
      },
  </code></pre>
  
  <p>I already created a schema that grabs these fields, but instead of pulling the entire dictionary, on Graphql, I will need to be able to make a query where I only specify the language-locale I want (e.g. fr-FR) and that would only fetch the translated value for that one language (fr-FR). I don't want to get an array of all localized languages as this will be very taxing and will take longer to load per query. </p>
  
  <p>Does anyone have any ideas on how I could accomplish this? Maybe through a resolver where I pass in the language as a parameter? But where would the languages be defined? I may need to clean this but we have an assortment of locale definitions: en_UK, en-UK, UK, en_UK_CO... Also, if the queried language is not found, how could I define a fallback? </p>
  
  <p>Any guidance would be appreciated. </p>
  
  <p>Thanks!</p>