-<div class="content sourceset-dependent-content" data-active="" data-togglable=":core/appleMain"><div class="symbol monospace"><span class="token keyword">fun </span><a href="get-localized-string-from-bundle-formatted.html"><span class="token function">getLocalizedStringFromBundleFormatted</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">res<span class="token operator">: </span><a href="https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html">String</a><span class="token operator">?</span><span class="token punctuation">, </span></span><span class="parameter ">key<span class="token operator">: </span><a href="https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html">String</a><span class="token punctuation">, </span></span><span class="parameter ">default<span class="token operator">: </span><a href="https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html">String</a><span class="token operator">?</span><span class="token punctuation">, </span></span><span class="parameter ">table<span class="token operator">: </span><a href="https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html">String</a><span class="token operator">?</span><span class="token punctuation">, </span></span><span class="parameter "><span class="token keyword">vararg </span>args<span class="token operator">: </span><a href="https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html">Any</a></span></span><span class="token punctuation">)</span><span class="token operator">: </span><a href="https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html">String</a><span class="token operator">?</span><span class="clearfix"><span class="floating-right">(<a href="https://github.com/tolgee/tolgee-mobile-kotlin-sdk/tree/master/core/src/appleMain/kotlin/io/tolgee/TolgeeApple.kt#L167">source</a>)</span></span></div><p class="paragraph">Retrieves a localized and formatted string from a specified bundle. Uses the provided <code class="lang-kotlin">key</code>, <code class="lang-kotlin">default</code> value, <code class="lang-kotlin">table</code>, and any additional arguments for string formatting. If no localized string is found, it falls back to the <code class="lang-kotlin">default</code> value.</p><span class="kdoc-tag"><h4 class="">Return</h4><p class="paragraph">The localized and formatted string, or null if no string could be resolved.</p></span><h4 class="">Parameters</h4><div class="table"><div class="table-row" data-filterable-current=":core/appleMain" data-filterable-set=":core/appleMain"><div class="main-subrow keyValue "><div class=""><span class="inline-flex"><div><u><span><span>res</span></span></u></div></span></div><div><div class="title"><p class="paragraph">The resource specification, usually a language code.</p></div></div></div></div><div class="table-row" data-filterable-current=":core/appleMain" data-filterable-set=":core/appleMain"><div class="main-subrow keyValue "><div class=""><span class="inline-flex"><div><u><span><span>key</span></span></u></div></span></div><div><div class="title"><p class="paragraph">The key associated with the localized string resource.</p></div></div></div></div><div class="table-row" data-filterable-current=":core/appleMain" data-filterable-set=":core/appleMain"><div class="main-subrow keyValue "><div class=""><span class="inline-flex"><div><u><span><span>default</span></span></u></div></span></div><div><div class="title"><p class="paragraph">The default string to use if the localized string is not found. Can be null.</p></div></div></div></div><div class="table-row" data-filterable-current=":core/appleMain" data-filterable-set=":core/appleMain"><div class="main-subrow keyValue "><div class=""><span class="inline-flex"><div><u><span><span>table</span></span></u></div></span></div><div><div class="title"><p class="paragraph">The name of the table (e.g., file) in the bundle containing the localization data. Can be null.</p></div></div></div></div><div class="table-row" data-filterable-current=":core/appleMain" data-filterable-set=":core/appleMain"><div class="main-subrow keyValue "><div class=""><span class="inline-flex"><div><u><span><span>args</span></span></u></div></span></div><div><div class="title"><p class="paragraph">The arguments to format the resulting string. Supports up to 10 arguments.</p></div></div></div></div></div></div> </div>
0 commit comments