<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Localization &#8211; Tjitjing Blog</title>
	<atom:link href="http://localhost/index.php/tag/localization/feed" rel="self" type="application/rss+xml" />
	<link>https://blog.tjitjing.com/</link>
	<description>This is my blog on technology related stuff and on occation other things too...</description>
	<lastBuildDate>Sun, 21 Mar 2021 08:27:44 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1.16</generator>
	<item>
		<title>How to use iOS device settings for language in Ionic 5 / Cordova</title>
		<link>https://blog.tjitjing.com/index.php/2021/03/how-to-use-ios-device-settings-for-language-in-ionic-5-cordova.html</link>
					<comments>https://blog.tjitjing.com/index.php/2021/03/how-to-use-ios-device-settings-for-language-in-ionic-5-cordova.html#respond</comments>
		
		<dc:creator><![CDATA[Max]]></dc:creator>
		<pubDate>Sun, 21 Mar 2021 08:27:44 +0000</pubDate>
				<category><![CDATA[App Development]]></category>
		<category><![CDATA[Cordova]]></category>
		<category><![CDATA[Ionic Framework]]></category>
		<category><![CDATA[Xcode]]></category>
		<category><![CDATA[Globalization]]></category>
		<category><![CDATA[Ionic5]]></category>
		<category><![CDATA[Language]]></category>
		<category><![CDATA[Locale]]></category>
		<category><![CDATA[Localization]]></category>
		<guid isPermaLink="false">https://blog.tjitjing.com/?p=815</guid>

					<description><![CDATA[How do set language for context menus (select all, cut, copy, paste&#8230;), file upload, camera dialogues and other iOS or plugin functionality that is outside of your core project? The answer is CFBundleDevelopmentRegion set in info.plist It seems CFBundleDevelopmentRegion is always set to en_US by default (or maybe this is because I build on a&#8230; <a class="more-link" href="https://blog.tjitjing.com/index.php/2021/03/how-to-use-ios-device-settings-for-language-in-ionic-5-cordova.html">Continue reading <span class="screen-reader-text">How to use iOS device settings for language in Ionic 5 / Cordova</span></a>]]></description>
										<content:encoded><![CDATA[
<p>How do set language for context menus (select all, cut, copy, paste&#8230;), file upload, camera dialogues and other iOS or plugin functionality that is outside of your core project?</p>



<p>The answer is CFBundleDevelopmentRegion set in info.plist</p>



<p>It seems CFBundleDevelopmentRegion is always set to en_US by default (or maybe this is because I build on a laptop that has these settings) thus showing context menus, file upload dialog etc in English.</p>



<p>I found that <strong>setting CFBundleDevelopmentRegion to empty uses device settings for language.</strong></p>



<p>It seems making the change directly in Xcode does not work for some reason.</p>



<p>Put this in your config.xml ios section.</p>



<pre class="wp-block-code"><code><code>&lt;platform name="ios">
   &lt;config-file parent="CFBundleDevelopmentRegion" target="*-Info.plist">
        &lt;array>
            &lt;string />
        &lt;/array>
    &lt;/config-file>
&lt;/platform></code>
</code></pre>



<p>Note that some plugins seem to set language, so if you cannot get this to work, check your plugins. This was tested in Ionic 5 / Angular / Cordova.</p>



<p>Thanks to <a rel="noreferrer noopener" href="https://stackoverflow.com/a/55729308/2820510" data-type="URL" data-id="https://stackoverflow.com/a/55729308/2820510" target="_blank">Maximillion Bartango on SO</a> for putting me on the right track.</p>



<p>Please comment if this worked for you or if you have problems or other solutions.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.tjitjing.com/index.php/2021/03/how-to-use-ios-device-settings-for-language-in-ionic-5-cordova.html/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
