Skip to main content
The Stringboot React adapter provides a set of hooks to make string management easy and efficient.

Initialization

Initialize StringBoot in your root App component using the useStringBoot hook.

Using Strings

Single String (useString)

The useString hook automatically updates your component when the language changes or when the string value is updated remotely.
You can also request a specific language for a string:

Multiple Strings (useStrings)

Load multiple strings at once. This returns a key-value object.

Language Management

Switching Language (useLanguage)

Listing Available Languages (useActiveLanguages)

Fetch the list of active languages configured in your Stringboot dashboard.

Manual Synchronization

If you need to manually trigger a sync (e.g., “Check for updates” button), use the useSync hook.