Paraglide for React Native? #3056
-
Looking into moving from i18next right now across our entire stack, which consists of several Remix webapps and React Native. From what I've gathered, paraglide mostly makes use of SSR/backend compiling stuff? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi @tobimori,
import { onSetLanguageTag } from "paraglide"
onSetLanguageTag(() => {
triggerRerender()
})
No, Paraglide JS works with plain JS, no server stuff. If you use Paraglide-Next, Paraglide-SvelteKit etc you get SSR stuff. You need to have a compile step though. If you use a bundler, you can compile in the bundle step or use the paraglide vite plugin directly. |
Beta Was this translation helpful? Give feedback.
Hi @tobimori,
Why do you want to move from i18next? (You can use inlang apps with the i18next plugin)
You should be able to use Paraglide JS but might need to wire up your React Native app to re-render when the language is changed. That is trivial to achieve (pseudocode):
No, Paraglide JS works with plain JS, no server stuff. If you use Paraglide-Next, Paraglide-SvelteKit etc you get SSR stuff. You need to have a compile step though. If you use a bundler, you can compile in the bundle step or use the paraglide vite …