After this lesson you will
- Know where each module's resources live and how the Res class is generated
- Pick the right stringResource, getString, painterResource, Font or Res.getUri for each need
- Explain why a missing translation quietly shows English, and use LocaleParityTest to catch it
Duration15 min
DifficultyBeginner
Compose Multiplatform Resources And Localization
Shared resources in Compose Multiplatform: the composeResources folder, each module's Res class, reading strings, images, fonts and files from commonMain, and keeping the Vietnamese version complete with LocaleParityTest.
- 01Lesson Goal
- 02Part 1: From R.string To Res.string
- 03Part 2: The composeResources Folders In The Repo
- 04Part 3: One Res Class Per Module
- 05Part 4: Reading Resources In Code
- 06Part 5: Multiple Languages With values-vi
- 07Part 6: LocaleParityTest Blocks Silent Bugs
- 08Part 7: Drill, Break A Translation
- 09Part 8: The Android Packaging Trap
- 10Troubleshooting Table
- 11Checkpoint
- 12Bad Smells
- 13References
- 14Key Takeaways
Topics: mobile-action-pro, compose-state
14 sections left in this lessonUnlock all of Mobile Action ProLesson Goal, Part 1: From R.string To Res.string, … — plus 69 lessons in this course, source code and checklists.
Unlock Mobile Action ProOne-time payment — lifetime access — 7-day money-back. Already purchased? Sign in