# Compose Multiplatform Resources XML

> Translate JetBrains Compose Multiplatform XML files effortlessly.

URL: https://store.crowdin.com/compose-multiplatform-resources-xml
Identifier: compose-multiplatform-resources-xml
Category: File Formats
Type: System
Author: Crowdin

Compose Multiplatform Resources XML lets you define strings, plurals, and arrays for JetBrains Compose Multiplatform apps. This XML-based format helps maintain consistency across Android, Desktop, Web, and iOS apps developed with Compose.



Crowdin fully supports Android XML resources, and since Compose Multiplatform XML follows a compatible structure, you can seamlessly translate and manage your Compose resources within Crowdin without additional configuration.

## File Format Details

| Attribute | Value |
| --------- | ----- |
| File Extension | .xml |
| [API Type](https://developer.crowdin.com/api/v2/#operation/api.projects.files.post) | android |
| Source can be edited in Crowdin | Yes |
| Generating translated files via [Bundles](https://support.crowdin.com/bundles/) | [Search Crowdin Store](https://store.crowdin.com/tags/string-exporter) |
| Supports pluralization | Yes |
| WYSIWYG Preview in the editor | Yes |
| Supported types of contextual information | Text comments, Screenshots, Live preview via SDK |
| Custom attributes | No |
| Existing translations import possibility | Key-value mapping |

## Sample File

```xml
<resources>
    <!-- Inline comments are supported -->
    <string name="app_name">Compose Multiplatform App</string>

    <!-- Example of localization placeholder -->
    <string name="greeting_user">Hello, %s!</string>

    <!-- Plurals -->
    <plurals name="number_of_messages">
        <item quantity="one">You have %d message</item>
        <item quantity="other">You have %d messages</item>
    </plurals>

    <!-- String Arrays -->
    <string-array name="menu_items">
        <item>Home</item>
        <item>Profile</item>
        <item>Settings</item>
    </string-array>
</resources>
```

## Resources

- [JetBrains Resources overview](https://www.jetbrains.com/help/kotlin-multiplatform-dev/compose-multiplatform-resources.html)
