Satellite-im / Uplink-Deprecated

(Pre-Release Software) Secure, Encrypted, P2P chat written atop Warp, IPFS, LibP2P, Dioxus and many more awesome projects and protocols.
Other
24 stars 3 forks source link

Wire all plaintext "english" to use language lib. #2

Closed InfamousVague closed 2 years ago

InfamousVague commented 2 years ago

Work has started on using the language library, we need to go across the app and make sure we're unifying the language.

You can get the language lib from an AtomRef like thislet l = use_atom_ref(&cx, LANGUAGE).read();

Now you'll want to find and replace any reference to a string with the language variant, you will likely need to create new language entries under src/language/en_us.rs. and replace them in components across the app something like placeholder: "Say something..." becomes placeholder: "{l.chatbar_placeholder}"

InfamousVague commented 2 years ago

Related: https://github.com/Satellite-im/WarpGUI/pull/52

InfamousVague commented 2 years ago

I merged the related pr