# Translations

<figure><img src="/files/VKW7jxaqlEMlO8WeVXlI" alt=""><figcaption><p>Moko resources folder</p></figcaption></figure>

AppKickstarter leverages [Moko resources](https://github.com/icerockdev/moko-resources) to manage translations.

In shared module, in commonMain, there is a moko-resources folder.

In this folder there are base localization, all the localizations you want (here fr), images and fonts.&#x20;

All the resources here are bundled in the target platform (Android, iOS, etc).

### Define XML key values

Base strings.xml:&#x20;

```
<resources>
    <string name="login">Login</string>
    <string name="signup">Create an account</string>
</resources>
```

French strings.xml:&#x20;

```
<resources>
    <string name="login">Se connecter</string>
    <string name="signup">Creer un compte</string>
</resources>
```

### Access in shared code or every where in the project

Use SharedRes.strings to access localizations:

```
Button(onClick = { login() } {
    Text(SharedRes.strings.login)
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.appkickstarter.com/features/translations.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
