Appearance
Hosted sample app
Try StringPush without wiring your own project first.
URL
Production: https://sample.platform.stringpush.com
(Your staging stack uses https://sample.staging.stringpush.com.)
Prerequisites (admin)
| Requirement | Why |
|---|---|
| Application + runtime API key | Manifest and bundle fetches |
| Verified browser origin | Runtime key + CORS — see Verify a browser origin |
| Staging bundles published | Demo keys: common.greeting, common.welcome, items.count |
Recommended: run on localhost
Platform hostnames (*.stringpush.com) cannot be added to your application allowlist. The fastest way to try your credentials:
- Create an application in admin with
localhost:5173(or your dev server port) in Allowed browser origins — localhost is active immediately. - Publish staging bundles in Keys.
- Run your app locally at
http://localhost:5173withinit()(see Getting started), or use a local dev server on any listedlocalhost:<port>origin. - Optional: open the hosted sample UI and paste credentials only if your verified origin matches where the page runs — for new applications, local
init()is simpler.
Hosted sample (platform URL)
The hosted app at sample.platform.stringpush.com is useful to explore the UI. When the platform demo credentials are configured, strings load automatically. Otherwise paste your Application ID and runtime key — those requests only succeed if your application has a verified origin matching where the SDK runs (for most teams, use the local path above).
Steps (local)
- Sign in to admin and create a project + application.
- Add
localhost:5173to Allowed browser origins (and your staging hostname when ready — verify it). - Publish staging bundles in Keys.
- Wire
init()in your local app and confirm strings load. - Optional: append
?translation_edit=1on staging for the overlay.
Demo keys: common.greeting, common.welcome, items.count (includes ICU plural).
ICU demo
The sample exercises:
- Plain strings
{name}interpolation- Plural rules
See ICU interpolation.
Troubleshooting
| Symptom | What to check |
|---|---|
CORS or 403 on manifest | Origin not verified — see Verify a browser origin |
| Hosted sample + your credentials | Use local sample with localhost in allowlist, or verify your staging hostname and run SDK from that site |