App translations and localization

Every user-facing string in the WFM and VMS apps is translatable. The package ships a full set of default English (en-GB) strings for each app, and you override or translate any string by deploying an App Translation Custom Metadata record. This article explains the mechanism, the JSON shape, and the string namespaces each app uses so you know exactly which keys to set.

Use this alongside the App definition JSON reference, which describes the translationKey, defaultLanguage, and availableLanguages settings that connect your configuration to these strings.

How translation works

Each app resolves a label in this order, stopping at the first hit:

  1. The shipped default strings for that app (English en-GB), loaded when the app starts.
  2. Any App Translation records whose Type__c matches the app, deep merged over the defaults per key.

Because the merge is per key, an override record only needs to contain the keys you are changing. Everything you do not mention keeps its shipped default. The active language is chosen from the app definition (defaultLanguage, and the availableLanguages switcher), and unresolved keys fall back to en-GB.

Two more behaviours matter when authoring strings:

"recipients": {
    "one": "1 recipient",
    "other": "%{count} recipients"
}

The App Translation custom metadata record

Create one record per app per language. The object is b3s__App_Translation__mdt.

Field Type Purpose
b3s__Type__c Picklist (required) Which app this record translates. See the supported values below. Records are loaded only for the app whose type matches.
b3s__Language_Code__c Picklist The language this record supplies, for example es-ES. Adds the language to the app's available list.
b3s__JSON__c Long text (up to 131,072 chars) The translated strings, as JSON, wrapped by locale (see the shape below).

Supported app types

b3s__Type__c is a restricted picklist. Each value maps to one app:

Type__c value App
Scheduling Scheduler
Clock In / Out Component Clock
Terminal Terminal kiosk
Candidate Availability Candidate Availability Manager
Timesheet Submission Timesheet submission (candidate)
Timesheet Approval Timesheet approval (client)
Client Shift Manager Client Shift Manager (includes the client VMS view)

Supported language codes

b3s__Language_Code__c currently offers en-GB, en-US, es-ES, fr-FR, el-GR, and bg-BG. The default English strings are en-GB.

The translation JSON shape

The value of b3s__JSON__c is an object keyed by the locale, then by nested namespaces, ending in the string or plural object:

{
    "es-ES": {
        "timeClock": {
            "startAction": "Iniciar",
            "startedAt": "Iniciado a las %{t}"
        }
    }
}

The locale key inside the JSON must match the record's b3s__Language_Code__c. Namespaces are grouped by feature (for example timeClock, myInvites, errors). To find the key you want to change, locate it in the per-app reference below and reproduce the same nesting in your record, keeping only the keys you are overriding.

Two conventions that connect strings to your configuration

Wherever your app definition names a translationKey (on a field, filter, title part, and so on), or references a Salesforce field, the app looks the label up in two reserved namespaces before falling back to the configured label or labelOverride:

Namespace Looked up by Example
fields.<field API name> The field or field path on the item fields.b3s__Total_Value__c
labels.<translationKey> The item's translationKey labels.filterCategory

So to translate a field's label everywhere it appears, add it under fields; to translate by a translationKey you set in configuration, add it under labels:

{
    "es-ES": {
        "fields": {
            "b3s__Total_Value__c": "Importe total"
        },
        "labels": {
            "filterCategory": "Categoría"
        }
    }
}

Note: a translationKey value that contains more than one dot is treated as literal text and is not looked up. Keep translation keys simple (no dots) so they resolve.

Translating an app into a new language

  1. In the app definition JSON, add the locale to availableLanguages (and optionally set defaultLanguage). For example the Clock definition:
"defaultLanguage": "en-GB",
"availableLanguages": ["en-GB", "es-ES"]
  1. Create an App_Translation__mdt record with Type__c set to the app, Language_Code__c set to the new locale, and JSON__c holding the translated strings wrapped by that locale.
  2. Repeat the record per language. You do not need to translate every key at once; anything you omit falls back to en-GB.
  3. Deploy the records. On next load the app offers the language and applies your strings.

Re-wording an app without changing language

The same mechanism edits the default English wording. Create a record with Language_Code__c = en-GB and only the keys you want to change. For example, to rename the Clock "Claim" button and the vendor "Proposals" tab:

{
    "en-GB": {
        "searchShifts": { "claimOpenShiftLabel": "Pick up" }
    }
}

This is the supported way to relabel buttons, tabs, and messages, no configuration change to the app definition is needed.

Shared strings (apply to every app)

A large set of common strings is shared by all apps, under the top-level common namespace. Overriding one of these changes it across every surface where it appears. The main groups:

Namespace under common Covers
common.actions Generic buttons: edit, save, cancel, close, delete, select, select all.
common.errors Server, auth, fetch, upsert, delete, describe and file-upload error messages.
common.fields Validation and placeholder text for every input type (number, text, textArea, toggle, checkbox, date, dateRange, timeRange, dateTime, hours, fileUpload, recordFiles, select, lookup, time).
common.forms Record form messages (missing object, related records, no files).
common.recordsList, common.listControls List headings, delete confirmation, search placeholder, paging, result counts.
common.filters Filter panel labels, clear, yes/no, operators, result counts.
common.repeatPattern, common.patternTypeCreator The recurring-record "Repeat" control and the pattern-type builder.
common.mapComponent Map markers and geolocation error messages.
common.shiftMatching The shared matching panel (tabs, invite, assign, paging, no-results).
common.time, common.timeUtils Day and month names, and relative time phrases ("in 5 minutes", "2 days ago").
common.themes Theme picker labels.

Example override (shorten a shared button):

{ "en-GB": { "common": { "actions": { "save": "Save now" } } } }

Per-app translation reference

Each app adds its own top-level namespaces on top of common. All apps share errors.messages (startFailed, dataLoadingFailed). Below are the app-specific namespaces and representative keys.

Scheduler (Type__c = Scheduling)

The richest string set. Top-level namespaces:

Namespace Covers
settingsPanel, rightSidebar.tips Sidebar and toolbar tooltips (Groups, Filters, Change Date, Reload, Re-run Compliance, Settings, Full Screen, Notifications).
dateSelection, groupSelection Date jump control and the group switcher, including the group explainer text.
contextMenu Every calendar right-click action: create, copy, cut, paste, edit, delete, cancel, match, auto-match, send notification, including the plural bulk variants.
notificationCenter The bulk notification engine UI: tabs, scan, campaigns, review, compose, templates. See Scheduling notifications.
groupMatching The "match a group of shifts to one candidate" dialog (tabs, issue summaries, per-shift details, assign, toasts).
autoMatch The auto-match and assign dialog (threshold slider, progress, per-shift status, summary toasts).
resourceStats Totals under each worker's name. Use shifts.one and shifts.other with %{count}, and scheduled and actual with %{hours}. Include the hours unit in each label. Scheduler day stats
"contextMenu": {
    "createShift": "New Shift on %{date}",
    "deleteBulk": { "one": "Delete one item", "other": "Delete %{count} items" }
}

Clock (Type__c = Clock In / Out Component)

Namespace Covers
timeClock Clock-in/out button and status (startAction, startedAt, lateBy, earlyBy, GPS accuracy).
myInvites, invitationRequests Invitations tabs and the accept/reject controls.
searchShifts Open-shift search and the claim button.
myShifts, shiftTypes The shifts/expenses/availability tabs and the ad-hoc shift label.
navigation.menu Menu actions (log break, submit location).
availabilityCalendar The availability calendar (shared shape with the Candidate Availability app).

Candidate Availability Manager (Type__c = Candidate Availability)

Namespace Covers
availabilityCalendar The whole app: title, day states (available, unavailable, partial, multiple), the interaction hint, clear, all-day, and empty-day text.
"availabilityCalendar": {
    "title": "My Availability",
    "available": "Available",
    "unavailable": "Unavailable"
}

Timesheet submission and approval

These are two separate app types (Timesheet Submission, Timesheet Approval) with the same namespaces:

Namespace Covers
tabs Shifts and expenses tabs.
forms Approval and rejection headings, submit action, the weekly submission summary (weekSubmissionDetail: plural form with %{startDate}, %{endDate}, %{count}) and the day-view summary (daySubmissionDetail: %{date}, %{count}).
actions Approve, reject, approve all, reject all.
shift.actions, expense.actions The "Submit Week for Approval" labels.

Vendor Portal

The Vendor Portal ships default English strings under these namespaces: tabs (home, invites, proposals, workers, schedule, revenue), invites, proposals, workers, schedule, revenue, manage, and wizard (the propose-worker flow). Each carries the buttons, search placeholders, empty-state text, missing-credential wording, and plural counts for that tab.

Under onboarding, use templatesLabel, templatesPlaceholder, templatesHelp and templateRequiredHint to translate the template picker. The file-drop prompt uses workerPhoto.drop. Search, clear, done and selected-count text for the picker come from common.fields.multiSelect.

Client Shift Manager and the client VMS view (Type__c = Client Shift Manager)

All VMS client strings sit under a single vms namespace:

Namespace under vms Covers
vms.entryButton, vms.tabs The VMS entry button and its tabs (Home, Requests, Proposals, Workers, Schedule, Costs).
vms.requests The requests list, request types, tier and "opens at" labels, and proposed-worker counts.
vms.manage The request console: coverage, vendor pool, invites sent, proposals, approve/reject worker, chats and requests.
vms.broadcastModal The broadcast dialog (vendor search, All / None, per-tier "Exclusive for" window and duration labels, opens-after hints, invite expiry, send invites).
vms.wizard The new shift request / booking request wizard (steps, hints, credentials, broadcast, mediated-mode notice).
vms.proposals, vms.workers, vms.schedule, vms.costs, vms.chat The remaining tabs and the per-invite chat, including credential validity ranges and bill-line labels.
"vms": {
    "tabs": { "requests": "Requests", "proposals": "Proposals" },
    "requests": {
        "broadcast": "Broadcast",
        "workersProposed": { "one": "%{count} worker proposed", "other": "%{count} workers proposed" }
    }
}

Terminal (Type__c = Terminal)

The Terminal kiosk reuses the shared common strings and the Clock strings for the clock-in experience it hosts. Override its wording through the shared common namespace, and, for the embedded clock experience, the Clock namespaces via a Terminal type record.

Authoring checklist