📖
AppKickstarter docs
  • Get Started
    • Get started
    • Initialize third parties
    • Project organization
    • Application initialization
  • Tech things
    • Multi modules Architecture
    • Dependency injection
    • Library management
    • Secrets and Build Config
    • Backend as an implementation detail
  • Tutorials
    • Add a login page
    • Add a screen with tab bars
    • Add a settings screen
    • Display an In-App Changelog for a new published version
    • Update localizations
    • Update theme
    • Customize onboarding
    • Setup your paywall
    • Setup your first notifications
    • Format dates and save on database
    • Using a Different Backend Instead of Firebase
    • Make an infinite list with pagination
  • Features
    • Onboarding
    • Authentication
    • Firebase support
    • Offline support
    • Monetization
    • Whats new feature
    • Navigation in AppKickstarter
    • Theme
    • UI Kit
    • Dates management
    • Platform specific
    • Offline cache
    • Translations
    • Analytics
    • User management
    • Logger
    • Platform utilities
    • Maps and locations
    • Secured AI Backend Proxy
    • Settings
    • Application monitoring
    • Notifications
  • UI Kit
    • Adaptive
    • Advanced Components
    • Animated Components
    • Badges
    • Buttons
    • Cards
    • Containers
    • Dialogs
    • EmptyStates
    • Icons
    • Images
    • Lists
    • Modals
    • Tabs
    • Texts
    • Text fields
    • Toasts
    • Toggles
  • Other
    • Known issues
Powered by GitBook
On this page
  • Define XML key values
  • Access in shared code or every where in the project

Was this helpful?

  1. Features

Translations

Learn here how to do translations in AppKickstarter.

PreviousOffline cacheNextAnalytics

Last updated 1 year ago

Was this helpful?

AppKickstarter leverages 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.

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

Define XML key values

Base strings.xml:

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

French strings.xml:

<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)
}
Moko resources
Moko resources folder