Type Safely

Type Safely

Share this post

Type Safely
Type Safely
Use LocalizedStringResource To Store a Localized Value And Use It In SwiftUI
Copy link
Facebook
Email
Notes
More

Use LocalizedStringResource To Store a Localized Value And Use It In SwiftUI

Daily Coding Tip 146

Millie Sturgeon's avatar
Millie Sturgeon
Aug 04, 2022
∙ Paid

Share this post

Type Safely
Type Safely
Use LocalizedStringResource To Store a Localized Value And Use It In SwiftUI
Copy link
Facebook
Email
Notes
More
Share
herd of sheep on green grass field during daytime
Photo by Shyam on Unsplash

Start by creating a new app project and adding a new file with the Strings template. By default this should have the name Localizable.strings, which is fine. Add the following text to that file:

"key" = "This is my string";

This is a string that has "key" as its localized key, meaning this is the value we can later use to get acc…

Keep reading with a 7-day free trial

Subscribe to Type Safely to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 Type Safely
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share

Copy link
Facebook
Email
Notes
More