Jon Saw

Results 14 comments of Jon Saw

I tweaked my code based on the comments here. The translations will load, but as soon as the app mounts, the translations disappear (see attached video). https://user-images.githubusercontent.com/1572333/190161441-9b9c16c7-bba1-4526-bd2f-c136678fefc6.mov The only way...

Ignore my previous comment. I managed to get it to work. Example [here](https://github.com/jonsaw/sveltekit-i18n-example). Notable files to look at: - [hooks.server.ts](https://github.com/jonsaw/sveltekit-i18n-example/blob/main/src/hooks.server.ts) - [+layout.ts](https://github.com/jonsaw/sveltekit-i18n-example/blob/main/src/routes/%2Blayout.ts) (instead of +layout.server.ts)

Got it to work (with extra steps). ```swift extension LocalizedStringKey { var stringKey: String { let description = "\(self)" let components = description.components(separatedBy: "key: \"") .map { $0.components(separatedBy: "\",") }...

With iOS 16, managed to get it to work simply by using `String(localized:)` ```swift let emailLabel = String(localized: "Email") let errorMessage = String(localized: "Valid \(emailLabel) required") ```