title: Localization in multiple projects solution
body: <p>I have a solution in UWP with 3 different projects (for example: A, B and C). B is the library where A and C projects access to.</p>
  <p>I have generated the translations for the A project (using XLF files for the translations) and works OK. I'm using Multilingual App Toolkit (MAT).</p>
  <p>Now I have started the translations for the B project (resx files and xlf files are in the B project as in A)</p>
  <p><a href="https://i.stack.imgur.com/SlvxA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SlvxA.png" alt="enter image description here" /></a></p>
  <p>Despite I have activated MAT also in B project, <strong>I can't add new translation language to B</strong>, so I have created the files manually. Builds with only one warning:</p>
  <pre><code>GENERATEPROJECTPRIFILE : warning PRI257: 0xdef00522 - Resources found for language(s) 'es,en-us,eu' but no resources found for default language(s): ''. Change the default language or qualify resources with the default language. http://go.microsoft.com/fwlink/?LinkId=231899
  </code></pre>
  <p>It seems like project B doesn't have a default language despite of that it's set in the solution (Package.appxmanifest).</p>
  <p>When running the app, none of the localized strings in the B project are shown.</p>
  <p>Any idea how can I handle this problem?</p>
  <p>Edit 1: I have corrected the warning changing the default language for the project in the Assemby Info. Still, strings are not visible.</p>
  <p>Edit 2: The code in the A project and in the B is the same:</p>
  <pre><code>ResourceLoader.GetForCurrentView().GetString(&quot;FileName_StringName&quot;);
  </code></pre>
  <p>Other detail that might be of interest is that B project classes are (mostly) static.</p>
  <p>When initiating the app one of the first thing that happens it's the selection of the app level language:</p>
  <pre><code>// Hard coded language override     
  Windows.Globalization.ApplicationLanguages.PrimaryLanguageOverride = &quot;eu&quot;; 
              Windows.ApplicationModel.Resources.Core.ResourceContext.GetForCurrentView().Reset();   
             Windows.ApplicationModel.Resources.Core.ResourceContext.GetForViewIndependentUse().Reset();
  </code></pre>
  <p>Edit 3: This is what dumped PRI to XML file contains:</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?&gt;
  &lt;PriInfo&gt;
      &lt;ResourceMap name=&quot;CoreTPA&quot; version=&quot;1.0&quot; primary=&quot;true&quot;&gt;
          &lt;Qualifiers&gt;
              &lt;Language&gt;ES,EN-US,EU&lt;/Language&gt;
          &lt;/Qualifiers&gt;
          &lt;ResourceMapSubtree name=&quot;CoreTPA&quot;&gt;
              &lt;ResourceMapSubtree name=&quot;Resources&quot;&gt;
                  &lt;NamedResource name=&quot;AuroraForecastImages_GetForecast_ErrorDeserializingData&quot; uri=&quot;ms-resource://CoreTPA/CoreTPA/Resources/AuroraForecastImages_GetForecast_ErrorDeserializingData&quot;&gt;
                      &lt;Candidate qualifiers=&quot;Language-EU&quot; type=&quot;String&quot;&gt;
                          &lt;Value&gt;Error deserializing data&lt;/Value&gt;
                      &lt;/Candidate&gt;
                      &lt;Candidate qualifiers=&quot;Language-ES&quot; isDefault=&quot;true&quot; type=&quot;String&quot;&gt;
                          &lt;Value&gt;Error deserializing data&lt;/Value&gt;
                      &lt;/Candidate&gt;
                      &lt;Candidate qualifiers=&quot;Language-EN-US&quot; type=&quot;String&quot;&gt;
                          &lt;Value&gt;Error deserializing data&lt;/Value&gt;
                      &lt;/Candidate&gt;
                  &lt;/NamedResource&gt;
                  &lt;NamedResource name=&quot;AuroraForecastImages_GetForecast_ErrorGettingDataFromServerIsNetworkWorkingCorrectly&quot; uri=&quot;ms-resource://CoreTPA/CoreTPA/Resources/AuroraForecastImages_GetForecast_ErrorGettingDataFromServerIsNetworkWorkingCorrectly&quot;&gt;
                      &lt;Candidate qualifiers=&quot;Language-EU&quot; type=&quot;String&quot;&gt;
                          &lt;Value&gt;Error getting data from server. 
  Is network working correctly?&lt;/Value&gt;
                      &lt;/Candidate&gt;
                      &lt;Candidate qualifiers=&quot;Language-ES&quot; isDefault=&quot;true&quot; type=&quot;String&quot;&gt;
                          &lt;Value&gt;Error getting data from server. 
  Is network working correctly?&lt;/Value&gt;
                      &lt;/Candidate&gt;
                      &lt;Candidate qualifiers=&quot;Language-EN-US&quot; type=&quot;String&quot;&gt;
                          &lt;Value&gt;Error getting data from server. 
  Is network working correctly?&lt;/Value&gt;
                      &lt;/Candidate&gt;
                  &lt;/NamedResource&gt;
              &lt;/ResourceMapSubtree&gt;
          &lt;/ResourceMapSubtree&gt;
          &lt;ResourceMapSubtree name=&quot;Files&quot;&gt;
              &lt;ResourceMapSubtree name=&quot;CoreTPA&quot;&gt;
                  &lt;NamedResource name=&quot;Core_ml.xml&quot; uri=&quot;ms-resource://CoreTPA/Files/CoreTPA/Core_ml.xml&quot;&gt;
                      &lt;Candidate type=&quot;Path&quot;&gt;
                          &lt;Value&gt;CoreTPA\Core_ml.xml&lt;/Value&gt;
                      &lt;/Candidate&gt;
                  &lt;/NamedResource&gt;
              &lt;/ResourceMapSubtree&gt;
          &lt;/ResourceMapSubtree&gt;
      &lt;/ResourceMap&gt;
  &lt;/PriInfo&gt;
  </code></pre>