Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

feat: YouTube video as training content

aashu3c963b9d79e8
diff --git a/apps/erp/app/modules/resources/AGENTS.md b/apps/erp/app/modules/resources/AGENTS.md
index 4826312b0f..e773c84eff 100644
--- a/apps/erp/app/modules/resources/AGENTS.md
+++ b/apps/erp/app/modules/resources/AGENTS.md
@@ -13,7 +13,7 @@ Locations, work centers, processes, abilities (skills), partners, contractors, e
- **Maintenance Dispatch** — reactive or scheduled work order for equipment. Statuses: Open → Assigned → In Progress → Completed / Cancelled. Tracks time events, consumed parts, and affected work centers.
- **Maintenance Schedule** — preventive maintenance plan with frequency, priority, estimated duration, and required spare parts. `takesWorkCenterOffline` marks the PM as blocking the machine; the nightly generator (`packages/jobs/.../scheduled/dispatch.ts`) copies it onto each generated dispatch and sets `plannedEndTime = plannedStartTime + estimatedDuration` (so the offline window is bounded — the validator requires a duration when offline is on).
- **Failure Mode** — categorized failure type used by maintenance dispatches and quality NCRs.
-- **Training** — training programs with assignments, quiz questions, and frequency-based recertification. Completion tracked via `trainingCompletion`. **Status changes only from the header** (`TrainingHeader`): Draft shows Publish, Active shows Archive, and Reopen (back to Draft) is in the ⋯ menu — each through a `Confirm` posting `field=status` to `x+/training+/update.tsx` (`updateTrainingField`); Properties has no Status field. The name is edited in Properties (the content editor has no title block). The **Content** card holds a **Write | Upload PDF** toggle: a training's content is written (`content`) OR one PDF (`training.guidePath`, key `{companyId}/training/{trainingId}/{uploadId}/{file name}`, checked by `isValidTrainingGuideKey`), never both — a training with a `guidePath` is a PDF training, and the employee page shows the PDF instead of the written content. Switching back to Write clears `guidePath`. `guidePath` changes only while Draft (`updateTrainingField` filters its update on `status = 'Draft'` and refuses when no row changed). **External training is an assignment, not a training**: `trainingAssignment.trainingId` is nullable and an external assignment carries only `name` (CHECK `num_nonnulls("trainingId", "name") = 1`, `20261014164752_external-training-assignments.sql`). It is one-time (the status RPCs report frequency `Once`), sends no notifications or weekly reminders, and has no employee page (`share/training.$id` 404s it). The status and summary RPCs LEFT JOIN `training`, return `isExternal`, and the summary is one row per assignment; the assignments list and roster drawer (`assignments.$assignmentId.tsx`, `path.to.trainingAssignmentDetail(assignmentId)`) are keyed by assignment. Every completion — the employee's quiz (`share/training.$id`) and an admin's Mark Complete (`assignments.complete`) — goes through `recordTrainingCompletion` (`resources.service.ts`): it refuses an internal training that is not Active, uploads the OPTIONAL certificate of an external assignment (`validateTrainingCertificate`, async: PDF/PNG/JPG by extension AND file signature, 10 MB; key `{companyId}/training-certificates/{assignmentId}/{employeeId}/…` built on the server), works out the period on the server, removes the uploaded file when the insert fails, treats a duplicate completion as already recorded, and restamps the scheduler for a granted ability. `completeTrainingAssignment` refuses an employee outside the assignment's groups (`users_for_groups`). `updateTrainingAssignment` reads internal/external from the stored assignment, never the input. `uncompleteTrainingAssignment` (`delete: resources`) removes a wrong completion and its certificate file; the granted ability stays (the grant trigger only adds). The status RPC returns each completion's `certificatePath`. The assignment drawer (`assignments.$assignmentId.tsx`) is the only per-employee roster; the edit form has no Status tab.
+- **Training** — training programs with assignments, quiz questions, and frequency-based recertification. Completion tracked via `trainingCompletion`. **Status changes only from the header** (`TrainingHeader`): Draft shows Publish, Active shows Archive, and Reopen (back to Draft) is in the ⋯ menu — each through a `Confirm` posting `field=status` to `x+/training+/update.tsx` (`updateTrainingField`); Properties has no Status field. The name is edited in Properties (the content editor has no title block). The **Content** card holds a **Write | Upload PDF | YouTube Video** toggle: a training's content is written (`content`) OR one PDF (`training.guidePath`, key `{companyId}/training/{trainingId}/{uploadId}/{file name}`, checked by `isValidTrainingGuideKey`) OR one YouTube video (`training.videoUrl`, `20261022045258_training-video.sql`; any YouTube link is parsed by `getYouTubeVideoId` and stored as `youTubeWatchUrl`), never two — a training with a `guidePath` is a PDF training, one with a `videoUrl` a video training, and the employee page shows the PDF or the video (`TrainingVideoPlayer`, a youtube-nocookie embed) instead of the written content. Setting `guidePath` clears `videoUrl` and setting `videoUrl` clears `guidePath`; switching kinds on the toggle confirms, then clears the saved one. `guidePath` and `videoUrl` change only while Draft (`updateTrainingField` filters its update on `status = 'Draft'` and refuses when no row changed). **External training is an assignment, not a training**: `trainingAssignment.trainingId` is nullable and an external assignment carries only `name` (CHECK `num_nonnulls("trainingId", "name") = 1`, `20261014164752_external-training-assignments.sql`). It is one-time (the status RPCs report frequency `Once`), sends no notifications or weekly reminders, and has no employee page (`share/training.$id` 404s it). The status and summary RPCs LEFT JOIN `training`, return `isExternal`, and the summary is one row per assignment; the assignments list and roster drawer (`assignments.$assignmentId.tsx`, `path.to.trainingAssignmentDetail(assignmentId)`) are keyed by assignment. Every completion — the employee's quiz (`share/training.$id`) and an admin's Mark Complete (`assignments.complete`) — goes through `recordTrainingCompletion` (`resources.service.ts`): it refuses an internal training that is not Active, uploads the OPTIONAL certificate of an external assignment (`validateTrainingCertificate`, async: PDF/PNG/JPG by extension AND file signature, 10 MB; key `{companyId}/training-certificates/{assignmentId}/{employeeId}/…` built on the server), works out the period on the server, removes the uploaded file when the insert fails, treats a duplicate completion as already recorded, and restamps the scheduler for a granted ability. `completeTrainingAssignment` refuses an employee outside the assignment's groups (`users_for_groups`). `updateTrainingAssignment` reads internal/external from the stored assignment, never the input. `uncompleteTrainingAssignment` (`delete: resources`) removes a wrong completion and its certificate file; the granted ability stays (the grant trigger only adds). The status RPC returns each completion's `certificatePath`. The assignment drawer (`assignments.$assignmentId.tsx`) is the only per-employee roster; the edit form has no Status tab.
## Safety
@@ -76,7 +76,7 @@ Each operation is one `defineServiceFn` const in `resources.server.ts`. A route
| `createMaintenanceEvent` / `updateMaintenanceEvent` / `deleteMaintenanceEvent` / `startMaintenanceEvent` / `stopMaintenanceEvent` | `$dispatchId.event.new.tsx`, `$dispatchId.event.$eventId.tsx`, `$dispatchId.event.$eventId.delete.tsx`, `$dispatchId.events.tsx` | Refused on a Completed or Cancelled dispatch; the timecard must be the dispatch's, its employee an active employee and its work center the company's (both are tagged on the labor journal); the labor is posted again (`warning` when it fails) |
| `issueMaintenancePart` / `unissueMaintenancePart` | `$dispatchId.add-and-issue.tsx`, `$dispatchId.item.$itemId.delete.tsx` | Refused on a locked dispatch; the item must be the company's and every quantity more than 0; stock moves through the `issue` posting, whose refusal comes back with its own status and message. `createMaintenanceDispatchItem` is the same issue with a quantity; `updateMaintenanceDispatchItem` refuses a locked dispatch and moves no stock |
| `createSuggestion` | `x+/resources+/suggestions.new.tsx` | Any company member; not published |
-| `updateTrainingField` | `x+/training+/update.tsx` | `content` needs `resources` update (the training table's policy, under which the editor wrote it); every other field `people` update as well, as the route was. `guidePath` only while Draft; a write that reaches no row of the company is refused. The content editor saves with a plain `fetch`, so its autosave does not reload the page |
+| `updateTrainingField` | `x+/training+/update.tsx` | `content` needs `resources` update (the training table's policy, under which the editor wrote it); every other field `people` update as well, as the route was. `guidePath` and `videoUrl` only while Draft, each clearing the other; a write that reaches no row of the company is refused. The content editor saves with a plain `fetch`, so its autosave does not reload the page |
| `createTrainingAssignment` / `updateTrainingAssignment` / `completeTrainingAssignment` / `uncompleteTrainingAssignment` | `assignments.new.tsx`, `assignments.assignment.$assignmentId.tsx`, `assignments.complete.tsx`, `assignments.uncomplete.tsx` | One assignment per training, which must be the company's; only a member of the groups completes it; `completeTrainingAssignment` takes a file and is not published |
The building blocks they call are in `resources.service.ts` and are never tools: `activateWorkCenter`, `deleteAbility`, `deleteWorkCenter`, `deleteTrainingCompletion`, `ensureProcessAbility`, `resolveEmployeeAbilityExpiresAt`, `upsertEmployeeAbilityCell`, `upsertLocation`, `insertMaintenanceDispatch`, `upsertMaintenanceDispatchEvent`, `upsertMaintenanceSchedule`, `insertProcess`, `updateProcess`, `upsertTrainingAssignment`, `upsertWorkCenter`.
diff --git a/apps/erp/app/modules/resources/resources.models.test.ts b/apps/erp/app/modules/resources/resources.models.test.ts
index 08f23bb8f4..436db617e4 100644
--- a/apps/erp/app/modules/resources/resources.models.test.ts
+++ b/apps/erp/app/modules/resources/resources.models.test.ts
@@ -85,6 +85,40 @@ describe("isValidTrainingGuideKey", async () => {
});
});
+describe("getYouTubeVideoId", async () => {
+ const { getYouTubeVideoId } = await import("./resources.models");
+
+ it("reads the id from every YouTube link form", () => {
+ for (const url of [
+ "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
+ "https://youtube.com/watch?v=dQw4w9WgXcQ&t=42s",
+ "https://m.youtube.com/watch?v=dQw4w9WgXcQ",
+ "https://youtu.be/dQw4w9WgXcQ?si=abc",
+ "https://www.youtube.com/shorts/dQw4w9WgXcQ",
+ "https://www.youtube.com/live/dQw4w9WgXcQ",
+ "https://www.youtube-nocookie.com/embed/dQw4w9WgXcQ",
+ " https://www.youtube.com/watch?v=dQw4w9WgXcQ "
+ ]) {
+ expect(getYouTubeVideoId(url)).toBe("dQw4w9WgXcQ");
+ }
+ });
+
+ it("refuses links that are not a YouTube video", () => {
+ for (const url of [
+ "",
+ "not a url",
+ "https://vimeo.com/123456789",
+ "https://www.youtube.com/",
+ "https://www.youtube.com/watch?v=short",
+ "https://evil.com/watch?v=dQw4w9WgXcQ",
+ "https://youtube.com.evil.com/watch?v=dQw4w9WgXcQ",
+ "javascript:alert(1)//youtu.be/dQw4w9WgXcQ"
+ ]) {
+ expect(getYouTubeVideoId(url)).toBeNull();
+ }
+ });
+});
+
describe("validateTrainingCertificate", async () => {
const { TRAINING_CERTIFICATE_MAX_BYTES, validateTrainingCertificate } =
await import("./resources.models");
diff --git a/apps/erp/app/modules/resources/resources.models.ts b/apps/erp/app/modules/resources/resources.models.ts
index 226da091a0..4b816ed670 100644
--- a/apps/erp/app/modules/resources/resources.models.ts
+++ b/apps/erp/app/modules/resources/resources.models.ts
@@ -435,6 +435,45 @@ export function isValidTrainingGuideKey(key: string, prefix: string) {
return segments.length === 2 && segments.every((segment) => segment !== "");
}
+const YOUTUBE_HOSTS = new Set([
+ "youtube.com",
+ "www.youtube.com",
+ "m.youtube.com",
+ "music.youtube.com",
+ "youtube-nocookie.com",
+ "www.youtube-nocookie.com"
+]);
+const YOUTUBE_VIDEO_ID = /^[A-Za-z0-9_-]{11}$/;
+
+// The video id of a YouTube link: watch, youtu.be, shorts, live and embed
+// links. Null for anything else, so the server can refuse it.
+export function getYouTubeVideoId(url: string) {
+ let parsed: URL;
+ try {
+ parsed = new URL(url.trim());
+ } catch {
+ return null;
+ }
+ if (parsed.protocol !== "https:" && parsed.protocol !== "http:") return null;
+
+ const host = parsed.hostname.toLowerCase();
+ const segments = parsed.pathname.split("/").filter(Boolean);
+ let id: string | null | undefined = null;
+ if (host === "youtu.be") {
+ id = segments[0];
+ } else if (YOUTUBE_HOSTS.has(host)) {
+ if (segments[0] === "watch") id = parsed.searchParams.get("v");
+ else if (["shorts", "live", "embed", "v"].includes(segments[0] ?? ""))
+ id = segments[1];
+ }
+ return id && YOUTUBE_VIDEO_ID.test(id) ? id : null;
+}
+
+// A training's video is stored as the canonical watch link.
+export function youTubeWatchUrl(videoId: string) {
+ return `https://www.youtube.com/watch?v=${videoId}`;
+}
+
export function trainingCertificateKeyPrefix(
companyId: string,
trainingAssignmentId: string,
diff --git a/apps/erp/app/modules/resources/resources.server.ts b/apps/erp/app/modules/resources/resources.server.ts
index 8bc186c8ac..c6c8496b5f 100644
--- a/apps/erp/app/modules/resources/resources.server.ts
+++ b/apps/erp/app/modules/resources/resources.server.ts
@@ -25,6 +25,7 @@ import { invokePosting } from "../shared/shared.service";
import {
abilityValidator,
employeeAbilityCellValidator,
+ getYouTubeVideoId,
isMaintenanceDispatchLocked,
isValidTrainingGuideKey,
locationValidator,
@@ -35,7 +36,8 @@ import {
processValidator,
trainingAssignmentValidator,
trainingGuideKeyPrefix,
- workCenterValidator
+ workCenterValidator,
+ youTubeWatchUrl
} from "./resources.models";
import * as service from "./resources.service";
@@ -1370,7 +1372,8 @@ const trainingFields = [
"estimatedDuration",
"description",
"grantsAbilityId",
- "guidePath"
+ "guidePath",
+ "videoUrl"
] as const;
/**
@@ -1382,7 +1385,10 @@ const trainingFields = [
* as well. An empty `grantsAbilityId` clears it. `guidePath` is the PDF that
* replaces the written content: it takes one training, must be a key under
* that training's folder (empty clears it), and changes only while the
- * training is Draft. Refused when a training is not the company's.
+ * training is Draft. `videoUrl` is a YouTube video that replaces the written
+ * content the same way: any YouTube link is stored as its watch link. Setting
+ * the PDF clears the video and setting the video clears the PDF. Refused when
+ * a training is not the company's.
*
* @mcp
*/
@@ -1407,24 +1413,48 @@ export const updateTrainingField = defineServiceFn({
updatedAt: datetime.timestamp()
};
- if (field === "guidePath") {
+ if (field === "guidePath" || field === "videoUrl") {
const [trainingId] = ids;
- if (
- ids.length !== 1 ||
- !trainingId ||
- (value !== "" &&
+ const isGuide = field === "guidePath";
+ if (ids.length !== 1 || !trainingId) {
+ return ctx.error(
+ "validation",
+ isGuide ? "Invalid guide file" : "Invalid video link"
+ );
+ }
+
+ // A training's content is one PDF or one video, never both: setting
+ // either clears the other.
+ let content: { guidePath?: string | null; videoUrl?: string | null };
+ if (isGuide) {
+ if (
+ value !== "" &&
!isValidTrainingGuideKey(
value,
trainingGuideKeyPrefix(companyId, trainingId)
- ))
- ) {
- return ctx.error("validation", "Invalid guide file");
+ )
+ ) {
+ return ctx.error("validation", "Invalid guide file");
+ }
+ content = value
+ ? { guidePath: value, videoUrl: null }
+ : { guidePath: null };
+ } else {
+ const videoId = value === "" ? null : getYouTubeVideoId(value);
+ if (value !== "" && !videoId) {
+ return ctx.error("validation", "Enter a YouTube video link");
+ }
+ content = videoId
+ ? { videoUrl: youTubeWatchUrl(videoId), guidePath: null }
+ : { videoUrl: null };
}
- // The guide is the training's content, so it changes only while Draft.
- // Filtering the update on status makes the check and the write one step.
+
+ // The guide and the video are the training's content, so they change
+ // only while Draft. Filtering the update on status makes the check and
+ // the write one step.
const updated = await client
.from("training")
- .update({ guidePath: value || null, ...audit })
+ .update({ ...content, ...audit })
.eq("id", trainingId)
.eq("companyId", companyId)
.eq("status", "Draft")
@@ -1439,7 +1469,9 @@ export const updateTrainingField = defineServiceFn({
if (updated.data.length === 0) {
return ctx.error(
"rule",
- "The guide can only change while the training is Draft"
+ isGuide
+ ? "The guide can only change while the training is Draft"
+ : "The video can only change while the training is Draft"
);
}
return { ids };
diff --git a/apps/erp/app/modules/resources/resources.service.ts b/apps/erp/app/modules/resources/resources.service.ts
index d826603994..2617a30c00 100644
--- a/apps/erp/app/modules/resources/resources.service.ts
+++ b/apps/erp/app/modules/resources/resources.service.ts
@@ -912,6 +912,7 @@ export async function getTrainingAssignmentForCompletion(
status,
estimatedDuration,
guidePath,
+ videoUrl,
trainingQuestion(*)
)`
)
diff --git a/apps/erp/app/modules/resources/ui/Training/TrainingVideo.tsx b/apps/erp/app/modules/resources/ui/Training/TrainingVideo.tsx
new file mode 100644
index 0000000000..3e97ac6bb6
--- /dev/null
+++ b/apps/erp/app/modules/resources/ui/Training/TrainingVideo.tsx
@@ -0,0 +1,166 @@
+// SPDX-License-Identifier: AGPL-3.0-only
+// Carbon (github.com/crbnos/carbon). Modified or adapted versions of this file,
+// including ports, remain AGPLv3; serving them over a network requires releasing their source.
+
+import { useAction } from "@carbon/query";
+import { Button, HStack, Input, toast } from "@carbon/react";
+import { Trans, useLingui } from "@lingui/react/macro";
+import type { FormEvent } from "react";
+import { useState } from "react";
+import { LuCirclePlay, LuPencil } from "react-icons/lu";
+import type { action } from "~/routes/x+/training+/update";
+import { path } from "~/utils/path";
+import { getYouTubeVideoId } from "../../resources.models";
+
+// YouTube's own embedded player, from the privacy-enhanced domain (no
+// cookies until the viewer presses play).
+export function TrainingVideoPlayer({ videoUrl }: { videoUrl: string }) {
+ const { t } = useLingui();
+ const videoId = getYouTubeVideoId(videoUrl);
+ if (!videoId) return null;
+
+ return (
+ <div className="relative w-full aspect-video overflow-hidden rounded-lg border border-border bg-black">
+ <iframe
+ className="absolute inset-0 h-full w-full"
+ src={`https://www.youtube-nocookie.com/embed/${videoId}?rel=0`}
+ title={t`Training video`}
+ allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
+ referrerPolicy="strict-origin-when-cross-origin"
+ allowFullScreen
+ />
+ </div>
+ );
+}
+
+// The video side of a training's content: add, change and watch the video.
+const TrainingVideo = ({
+ trainingId,
+ videoUrl,
+ canEdit
+}: {
+ trainingId: string;
+ videoUrl: string | null;
+ canEdit: boolean;
+}) => {
+ const { t } = useLingui();
+ const [isEditing, setIsEditing] = useState(false);
+ const [link, setLink] = useState("");
+ const [isInvalid, setIsInvalid] = useState(false);
+
+ const fetcher = useAction<typeof action>({
+ onSuccess: () => {
+ setIsEditing(false);
+ setLink("");
+ },
+ onError: (data) => {
+ if (data?.error) toast.error(data.error.message);
+ }
+ });
+ const isBusy = fetcher.state !== "idle";
+
+ const save = (event: FormEvent<HTMLFormElement>) => {
+ event.preventDefault();
+ if (!getYouTubeVideoId(link)) {
+ setIsInvalid(true);
+ return;
+ }
+ const formData = new FormData();
+ formData.append("ids", trainingId);
+ formData.append("field", "videoUrl");
+ formData.append("value", link.trim());
+ fetcher.submit(formData, {
+ method: "post",
+ action: path.to.bulkUpdateTraining
+ });
+ };
+
+ if (!videoUrl || isEditing) {
+ if (!canEdit) {
+ return (
+ <p className="text-sm text-muted-foreground">
+ <Trans>No video added</Trans>
+ </p>
+ );
+ }
+ return (
+ <form onSubmit={save} className="flex flex-col gap-2 w-full">
+ <HStack className="w-full">
+ <Input
+ autoFocus
+ value={link}
+ placeholder="https://www.youtube.com/watch?v=…"
+ aria-label={t`YouTube link`}
+ isInvalid={isInvalid}
+ isDisabled={isBusy}
+ onChange={(event) => {
+ setLink(event.target.value);
+ setIsInvalid(false);
+ }}
+ />
+ <Button type="submit" isLoading={isBusy} isDisabled={!link.trim()}>
+ <Trans>Save</Trans>
+ </Button>
+ {videoUrl && (
+ <Button
+ variant="secondary"
+ isDisabled={isBusy}
+ onClick={() => {
+ setIsEditing(false);
+ setLink("");
+ setIsInvalid(false);
+ }}
+ >
+ <Trans>Cancel</Trans>
+ </Button>
+ )}
+ </HStack>
+ <p
+ className={
+ isInvalid
+ ? "text-sm text-destructive"
+ : "text-sm text-muted-foreground"
+ }
+ >
+ {isInvalid ? (
+ <Trans>Enter a YouTube video link</Trans>
+ ) : (
+ <Trans>Paste a YouTube video link</Trans>
+ )}
+ </p>
+ </form>
+ );
+ }
+
+ return (
+ <div className="flex flex-col gap-3 w-full">
+ <HStack className="w-full justify-between">
+ <HStack spacing={2} className="text-sm min-w-0">
+ <LuCirclePlay className="shrink-0 text-muted-foreground" />
+ <a
+ href={videoUrl}
+ target="_blank"
+ rel="noreferrer"
+ className="truncate hover:underline"
+ >
+ {videoUrl}
+ </a>
+ </HStack>
+ <Button
+ variant="secondary"
+ leftIcon={<LuPencil />}
+ isDisabled={!canEdit}
+ onClick={() => {
+ setLink(videoUrl);
+ setIsEditing(true);
+ }}
+ >
+ <Trans>Change</Trans>
+ </Button>
+ </HStack>
+ <TrainingVideoPlayer videoUrl={videoUrl} />
+ </div>
+ );
+};
+
+export default TrainingVideo;
diff --git a/apps/erp/app/modules/resources/ui/Training/index.ts b/apps/erp/app/modules/resources/ui/Training/index.ts
index 26671b5207..f6295f71a8 100644
--- a/apps/erp/app/modules/resources/ui/Training/index.ts
+++ b/apps/erp/app/modules/resources/ui/Training/index.ts
@@ -13,3 +13,7 @@ export { default as TrainingHeader } from "./TrainingHeader";
export { default as TrainingProperties } from "./TrainingProperties";
export { default as TrainingStatus } from "./TrainingStatus";
export { default as TrainingsTable } from "./TrainingsTable";
+export {
+ default as TrainingVideo,
+ TrainingVideoPlayer
+} from "./TrainingVideo";
diff --git a/apps/erp/app/routes/api+/mcp+/lib/tool-manifest.digest.json b/apps/erp/app/routes/api+/mcp+/lib/tool-manifest.digest.json
index c5a1d90ee2..93646700c1 100644
--- a/apps/erp/app/routes/api+/mcp+/lib/tool-manifest.digest.json
+++ b/apps/erp/app/routes/api+/mcp+/lib/tool-manifest.digest.json
@@ -1216,9 +1216,9 @@
{"name":"resources_getProcessesWithoutAbility","classification":"READ","schema":"31b84d65b2ac","response":"ce08332e0ce6","permission":"resources:view","paginates":false},
{"name":"resources_getSuggestion","classification":"READ","schema":"7e2e609c39b4","response":"77bb66a1249a","permission":"resources:view","paginates":false},
{"name":"resources_getSuggestions","classification":"READ","schema":"cd40ae40fad5","response":"de6c6fa956e3","permission":"resources:view","paginates":true},
- {"name":"resources_getTraining","classification":"READ","schema":"7f8214d1083f","response":"49bd32630132","permission":"resources:view","paginates":false},
+ {"name":"resources_getTraining","classification":"READ","schema":"7f8214d1083f","response":"c2cd40983436","permission":"resources:view","paginates":false},
{"name":"resources_getTrainingAssignment","classification":"READ","schema":"9ee4c244585a","response":"d992354bd0fd","permission":"resources:view","paginates":false},
- {"name":"resources_getTrainingAssignmentForCompletion","classification":"READ","schema":"9ee4c244585a","response":"cc0e3d2cf77a","permission":"resources:view","paginates":false},
+ {"name":"resources_getTrainingAssignmentForCompletion","classification":"READ","schema":"9ee4c244585a","response":"463b7834244a","permission":"resources:view","paginates":false},
{"name":"resources_getTrainingAssignments","classification":"READ","schema":"27aced930989","response":"03daf9b26033","permission":"resources:view","paginates":false},
{"name":"resources_getTrainingAssignmentStatus","classification":"READ","schema":"f8ae9324ff87","response":"a313bd7ca6e0","permission":"resources:view","paginates":false},
{"name":"resources_getTrainingAssignmentStatusForEmployee","classification":"READ","schema":"f77d5ceb3fe7","response":"a313bd7ca6e0","permission":"resources:view","paginates":false},
@@ -1254,7 +1254,7 @@
{"name":"resources_updateSuggestionEmoji","classification":"WRITE","schema":"5f9afdcc2556","response":"bcde375ebd4c","permission":"resources:update","paginates":false},
{"name":"resources_updateTraining","classification":"WRITE","schema":"6097fcf86545","response":"3797626bd17e","permission":"resources:update","paginates":false},
{"name":"resources_updateTrainingAssignment","classification":"WRITE","schema":"c787b54127d0","response":"3797626bd17e","permission":"resources:update","paginates":false},
- {"name":"resources_updateTrainingField","classification":"WRITE","schema":"89d3447a10b3","response":"0eb0c2be01ed","permission":"resources:update","paginates":false},
+ {"name":"resources_updateTrainingField","classification":"WRITE","schema":"26fe82ccc9b2","response":"0eb0c2be01ed","permission":"resources:update","paginates":false},
{"name":"resources_updateTrainingQuestion","classification":"WRITE","schema":"f029f3fda91d","response":"3797626bd17e","permission":"resources:update","paginates":false},
{"name":"resources_updateTrainingQuestionOrder","classification":"WRITE","schema":"33fd534d3ffe","response":"60cd1f553572","permission":"resources:update","paginates":false},
{"name":"resources_updateWorkCenter","classification":"WRITE","schema":"ae0789f2b0ea","response":"3797626bd17e","permission":"resources:update","paginates":false},
diff --git a/apps/erp/app/routes/share+/training.$id.tsx b/apps/erp/app/routes/share+/training.$id.tsx
index 3450412284..5c5bba1636 100644
--- a/apps/erp/app/routes/share+/training.$id.tsx
+++ b/apps/erp/app/routes/share+/training.$id.tsx
@@ -58,7 +58,10 @@ import {
recordTrainingCompletion
} from "~/modules/resources/resources.service";
import type { TrainingQuestion } from "~/modules/resources/types";
-import { TrainingGuideViewer } from "~/modules/resources/ui";
+import {
+ TrainingGuideViewer,
+ TrainingVideoPlayer
+} from "~/modules/resources/ui";
const logger = getLogger("erp", "share", "training");
@@ -149,7 +152,8 @@ export async function loader({ params, request }: LoaderFunctionArgs) {
frequency: training.frequency,
type: training.type,
estimatedDuration: training.estimatedDuration,
- guidePath: training.guidePath
+ guidePath: training.guidePath,
+ videoUrl: training.videoUrl
},
questions: sortedQuestions,
userId,
@@ -531,6 +535,7 @@ function ContentStep({
content: unknown;
estimatedDuration: string | null;
guidePath: string | null;
+ videoUrl: string | null;
};
}) {
const hasContent =
@@ -559,9 +564,11 @@ function ContentStep({
</div>
)}
- {/* A training's content is either its PDF guide or written text. */}
+ {/* A training's content is its PDF guide, its video or written text. */}
{training.guidePath ? (
<TrainingGuideViewer guidePath={training.guidePath} />
+ ) : training.videoUrl ? (
+ <TrainingVideoPlayer videoUrl={training.videoUrl} />
) : htmlContent ? (
<div
className="prose dark:prose-invert max-w-none w-full"
diff --git a/apps/erp/app/routes/x+/training+/$id.tsx b/apps/erp/app/routes/x+/training+/$id.tsx
index 533d890533..e6fea9d7d0 100644
--- a/apps/erp/app/routes/x+/training+/$id.tsx
+++ b/apps/erp/app/routes/x+/training+/$id.tsx
@@ -39,7 +39,8 @@ import {
TrainingExplorer,
TrainingGuide,
TrainingHeader,
- TrainingProperties
+ TrainingProperties,
+ TrainingVideo
} from "~/modules/resources/ui";
import { getTagsList } from "~/modules/shared/shared.service";
import { detailBreadcrumb, type Handle } from "~/utils/handle";
@@ -123,6 +124,11 @@ export default function TrainingRoute() {
);
}
+const contentTypes = ["write", "pdf", "video"] as const;
+type ContentType = (typeof contentTypes)[number];
+const isContentType = (value: string): value is ContentType =>
+ (contentTypes as readonly string[]).includes(value);
+
function TrainingContent() {
const { id } = useParams();
if (!id) throw new Error("Could not find id");
@@ -166,11 +172,18 @@ function TrainingContent() {
loaderData?.training?.status === "Draft";
const guidePath = loaderData?.training?.guidePath ?? null;
- // Content is written text or a PDF, never both. A training with a guide is a
- // PDF training; the toggle only remembers "PDF" before the first upload.
- const [pdfChosen, setPdfChosen] = useState(false);
- const [isRemovePdfOpen, setIsRemovePdfOpen] = useState(false);
- const contentType = guidePath || pdfChosen ? "pdf" : "write";
+ const videoUrl = loaderData?.training?.videoUrl ?? null;
+ // Content is written text, a PDF or a video, never two of them. A training
+ // with a guide is a PDF training and one with a video a video training; the
+ // toggle only remembers the choice before the first upload or link.
+ const savedType: ContentType | null = guidePath
+ ? "pdf"
+ : videoUrl
+ ? "video"
+ : null;
+ const [chosenType, setChosenType] = useState<ContentType>("write");
+ const [switchTo, setSwitchTo] = useState<ContentType | null>(null);
+ const contentType = savedType ?? chosenType;
return (
<Card>
@@ -180,7 +193,7 @@ function TrainingContent() {
<Trans>Content</Trans>
</CardTitle>
<CardDescription>
- <Trans>What employees read before the questions</Trans>
+ <Trans>What employees read or watch before the questions</Trans>
</CardDescription>
</CardHeader>
<CardAction>
@@ -189,11 +202,9 @@ function TrainingContent() {
value={contentType}
disabled={!canEdit}
onValueChange={(value) => {
- if (value === "pdf") setPdfChosen(true);
- if (value === "write") {
- if (guidePath) setIsRemovePdfOpen(true);
- else setPdfChosen(false);
- }
+ if (!isContentType(value) || value === contentType) return;
+ if (savedType) setSwitchTo(value);
+ else setChosenType(value);
}}
>
<ToggleGroupItem size="sm" value="write">
@@ -202,6 +213,9 @@ function TrainingContent() {
<ToggleGroupItem size="sm" value="pdf">
<Trans>Upload PDF</Trans>
</ToggleGroupItem>
+ <ToggleGroupItem size="sm" value="video">
+ <Trans>YouTube Video</Trans>
+ </ToggleGroupItem>
</ToggleGroup>
</CardAction>
</HStack>
@@ -216,6 +230,12 @@ function TrainingContent() {
guidePath={guidePath}
canEdit={canEdit}
/>
+ ) : contentType === "video" ? (
+ <TrainingVideo
+ trainingId={id}
+ videoUrl={videoUrl}
+ canEdit={canEdit}
+ />
) : canEdit ? (
// Flush toolbar: pad the text, not the panel.
<Editor
@@ -242,21 +262,35 @@ function TrainingContent() {
/>
)}
</CardContent>
- {isRemovePdfOpen && (
+ {savedType && switchTo && (
<Confirm
action={path.to.bulkUpdateTraining}
- title={t`Switch to Written Content`}
- text={t`This removes the PDF. Employees will see the written content instead.`}
- confirmText={t`Remove PDF`}
+ title={
+ switchTo === "write"
+ ? t`Switch to Written Content`
+ : switchTo === "pdf"
+ ? t`Switch to PDF`
+ : t`Switch to Video`
+ }
+ text={
+ savedType === "pdf"
+ ? t`This removes the PDF. Employees will see the new content instead.`
+ : t`This removes the video. Employees will see the new content instead.`
+ }
+ confirmText={savedType === "pdf" ? t`Remove PDF` : t`Remove Video`}
confirmVariant="destructive"
- onCancel={() => setIsRemovePdfOpen(false)}
+ onCancel={() => setSwitchTo(null)}
onSubmit={() => {
- setIsRemovePdfOpen(false);
- setPdfChosen(false);
+ setChosenType(switchTo);
+ setSwitchTo(null);
}}
>
<input type="hidden" name="ids" value={id} />
- <input type="hidden" name="field" value="guidePath" />
+ <input
+ type="hidden"
+ name="field"
+ value={savedType === "pdf" ? "guidePath" : "videoUrl"}
+ />
<input type="hidden" name="value" value="" />
</Confirm>
)}
diff --git a/apps/erp/test/resources-operations.test.ts b/apps/erp/test/resources-operations.test.ts
index 70ae02f58c..7f06aae2f4 100644
--- a/apps/erp/test/resources-operations.test.ts
+++ b/apps/erp/test/resources-operations.test.ts
@@ -378,4 +378,64 @@ describe("a training's guide", () => {
"The guide can only change while the training is Draft"
);
});
+
+ it("clears the training's video", async () => {
+ const { ctx, writes } = contextWith({ training: [{ id: "tr-1" }] });
+
+ await updateTrainingField(ctx, {
+ ids: ["tr-1"],
+ field: "guidePath",
+ value: "company-1/training/tr-1/upload/guide.pdf"
+ });
+
+ expect(writes[0]?.payload).toMatchObject({
+ guidePath: "company-1/training/tr-1/upload/guide.pdf",
+ videoUrl: null
+ });
+ });
+});
+
+describe("a training's video", () => {
+ it("refuses a link that is not a YouTube video", async () => {
+ const { ctx, writes } = contextWith();
+
+ const result = await updateTrainingField(ctx, {
+ ids: ["tr-1"],
+ field: "videoUrl",
+ value: "https://vimeo.com/123456789"
+ });
+
+ expect(result.error?.message).toBe("Enter a YouTube video link");
+ expect(writes).toEqual([]);
+ });
+
+ it("stores the watch link and clears the PDF", async () => {
+ const { ctx, writes } = contextWith({ training: [{ id: "tr-1" }] });
+
+ const result = await updateTrainingField(ctx, {
+ ids: ["tr-1"],
+ field: "videoUrl",
+ value: "https://youtu.be/dQw4w9WgXcQ?si=share"
+ });
+
+ expect(result.error).toBeNull();
+ expect(writes[0]?.payload).toMatchObject({
+ videoUrl: "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
+ guidePath: null
+ });
+ });
+
+ it("changes only while the training is Draft", async () => {
+ const { ctx } = contextWith({ training: [] });
+
+ const result = await updateTrainingField(ctx, {
+ ids: ["tr-1"],
+ field: "videoUrl",
+ value: "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
+ });
+
+ expect(result.error?.message).toBe(
+ "The video can only change while the training is Draft"
+ );
+ });
});
diff --git a/docs/content/docs/reference/training.mdx b/docs/content/docs/reference/training.mdx
index 48516b0976..a0af032605 100644
--- a/docs/content/docs/reference/training.mdx
+++ b/docs/content/docs/reference/training.mdx
@@ -1,9 +1,9 @@
---
title: Training
-description: Training programs, written or PDF content, quiz questions, group assignments, external training, per-period completion tracking, and the weekly reminder digest.
+description: Training programs, written, PDF or YouTube video content, quiz questions, group assignments, external training, per-period completion tracking, and the weekly reminder digest.
---
-**Training** manages required courses, employee-group assignments, and completion records. A training program contains written content or a PDF, and a quiz. Training taken outside Carbon is an external assignment with only a name, which an admin marks complete. Carbon tracks completion for each employee and period, sends weekly reminders for outstanding assignments, and allows managers to record manual completion. Training belongs to the [resources](/docs/reference/work-centers) area and uses the `resources` permission.
+**Training** manages required courses, employee-group assignments, and completion records. A training program contains written content, a PDF or a YouTube video, and a quiz. Training taken outside Carbon is an external assignment with only a name, which an admin marks complete. Carbon tracks completion for each employee and period, sends weekly reminders for outstanding assignments, and allows managers to record manual completion. Training belongs to the [resources](/docs/reference/work-centers) area and uses the `resources` permission.
For example, create a "Lockout/Tagout" training with type **"Mandatory"** and frequency **"Annual"**, then assign it to the "Machinists" group. Each group member remains **"Pending"** for the current year until completion and receives a Sunday reminder while outstanding.
@@ -11,7 +11,7 @@ For example, create a "Lockout/Tagout" training with type **"Mandatory"** and fr
Each training is a row in the `training` table (`packages/database/supabase/migrations/20251205021915_training.sql:18`). The create form requires only a **Name** (`apps/erp/app/modules/resources/ui/Training/TrainingForm.tsx:76`). Configure the remaining fields in the **Properties** panel (`apps/erp/app/modules/resources/ui/Training/TrainingProperties.tsx`), which saves each change through a bulk-update action.
-<Screenshot label="Training detail page: the Questions list on the left, the Content card with its Write | Upload PDF toggle in the middle, and the Properties panel on the right" caption="Questions on the left, the content in the middle, properties on the right." />
+<Screenshot label="Training detail page: the Questions list on the left, the Content card with its Write | Upload PDF | YouTube Video toggle in the middle, and the Properties panel on the right" caption="Questions on the left, the content in the middle, properties on the right." />
<FieldTable>
<Field name="name" required>The training's title.</Field>
@@ -20,6 +20,7 @@ Each training is a row in the `training` table (`packages/database/supabase/migr
<Field name="status" type="Draft | Active | Archived">Lifecycle of the training itself, changed from the page header. See below.</Field>
<Field name="content">The written training material, stored as rich JSON (`content`). Employees read it before the questions.</Field>
<Field name="guidePath">The uploaded PDF. A training with a PDF shows the PDF to employees instead of the written content.</Field>
+<Field name="videoUrl">The YouTube video, stored as its watch link. A training with a video shows the video to employees instead of the written content.</Field>
<Field name="estimatedDuration">A free-text estimate of how long the training takes.</Field>
<Field name="tags">Free-form tags for filtering the catalog.</Field>
<Field name="assignee">The person responsible for the training.</Field>
@@ -36,17 +37,18 @@ Change the status from the page header: a Draft training shows **Publish**, an A
</StatusFlow>
<Callout type="note" title="Only a Draft training can change">
-The content, the PDF, and the questions are editable only while the training is **"Draft"**; the server refuses a PDF change on any other status (`apps/erp/app/routes/x+/training+/update.tsx`). Employees can open and complete only an **"Active"** training. To change a published training, **Reopen** it first.
+The content, the PDF, the video, and the questions are editable only while the training is **"Draft"**; the server refuses a PDF or video change on any other status (`apps/erp/app/routes/x+/training+/update.tsx`). Employees can open and complete only an **"Active"** training. To change a published training, **Reopen** it first.
</Callout>
-## Written content or a PDF
+## Written content, a PDF or a video
-A training's content is one of two kinds, chosen with the **Write | Upload PDF** toggle on the **Content** card:
+A training's content is one of three kinds, chosen with the **Write | Upload PDF | YouTube Video** toggle on the **Content** card:
- **Write:** type the material in the editor.
- **Upload PDF:** drop one PDF, for shops that already have their training material as a document. **Replace** swaps it (`apps/erp/app/modules/resources/ui/Training/TrainingGuide.tsx`).
+- **YouTube Video:** paste a link to one YouTube video (a `youtube.com/watch`, `youtu.be`, Shorts or live link). Carbon stores it as the video's watch link; **Change** swaps it (`apps/erp/app/modules/resources/ui/Training/TrainingVideo.tsx`). Carbon does not host video files.
-Employees see the PDF in a viewer when the training has one, and the written content when it does not. To go back to written content, choose **Write**; Carbon asks before it removes the PDF. Both change only while the training is Draft.
+Employees see the PDF in a viewer, or the video in YouTube's player, when the training has one, and the written content when it has neither. To switch to another kind, choose it on the toggle; Carbon asks before it removes the PDF or the video. All three change only while the training is Draft.
## Quiz questions
@@ -173,8 +175,11 @@ A certificate attached to an external assignment's **Mark Complete** must be of
### "This employee is not assigned this training"
**Mark Complete** was sent for a person outside the assignment's groups (`assignments.complete.tsx`). Add the person to one of its groups first.
-### "The guide can only change while the training is Draft"
-The PDF was changed on an Active or Archived training. **Reopen** it first.
+### "The guide can only change while the training is Draft" / "The video can only change while the training is Draft"
+The PDF or the video was changed on an Active or Archived training. **Reopen** it first.
+
+### "Enter a YouTube video link"
+The link is not a YouTube video (`getYouTubeVideoId`, `apps/erp/app/modules/resources/resources.models.ts`). Only YouTube is supported; copy the link from the video's **Share** button.
### "A completed training re-appeared as Pending"
Expected for recurring frequencies. A **"Quarterly"** or **"Annual"** training tracks completion per period; when the new period starts (a new `Q?-YYYY` or `YYYY`), a fresh completion is required and the employee resets to **"Pending"** (`20251206000000_training_assignments.sql`). Only **"Once"** trainings stay completed forever.
diff --git a/packages/database/src/swagger-docs-schema.ts b/packages/database/src/swagger-docs-schema.ts
index 6479906308..efb63c3c55 100644
--- a/packages/database/src/swagger-docs-schema.ts
+++ b/packages/database/src/swagger-docs-schema.ts
@@ -96798,6 +96798,9 @@ export default {
{
$ref: "#/parameters/rowFilter.training.guidePath"
},
+ {
+ $ref: "#/parameters/rowFilter.training.videoUrl"
+ },
{
$ref: "#/parameters/select"
},
@@ -96914,6 +96917,9 @@ export default {
{
$ref: "#/parameters/rowFilter.training.guidePath"
},
+ {
+ $ref: "#/parameters/rowFilter.training.videoUrl"
+ },
{
$ref: "#/parameters/preferReturn"
}
@@ -96984,6 +96990,9 @@ export default {
{
$ref: "#/parameters/rowFilter.training.guidePath"
},
+ {
+ $ref: "#/parameters/rowFilter.training.videoUrl"
+ },
{
$ref: "#/parameters/body.training"
},
@@ -102393,9 +102402,6 @@ export default {
{
$ref: "#/parameters/rowFilter.companySettings.accountingActivatedBy"
},
- {
- $ref: "#/parameters/rowFilter.companySettings.requireBackflushStorageUnit"
- },
{
$ref: "#/parameters/rowFilter.companySettings.leaseIncrementalBorrowingRate"
},
@@ -102405,6 +102411,9 @@ export default {
{
$ref: "#/parameters/rowFilter.companySettings.leaseReminderDays"
},
+ {
+ $ref: "#/parameters/rowFilter.companySettings.requireBackflushStorageUnit"
+ },
{
$ref: "#/parameters/rowFilter.companySettings.preventNegativeBackflush"
},
@@ -102674,9 +102683,6 @@ export default {
{
$ref: "#/parameters/rowFilter.companySettings.accountingActivatedBy"
},
- {
- $ref: "#/parameters/rowFilter.companySettings.requireBackflushStorageUnit"
- },
{
$ref: "#/parameters/rowFilter.companySettings.leaseIncrementalBorrowingRate"
},
@@ -102686,6 +102692,9 @@ export default {
{
$ref: "#/parameters/rowFilter.companySettings.leaseReminderDays"
},
+ {
+ $ref: "#/parameters/rowFilter.companySettings.requireBackflushStorageUnit"
+ },
{
$ref: "#/parameters/rowFilter.companySettings.preventNegativeBackflush"
},
@@ -102909,9 +102918,6 @@ export default {
{
$ref: "#/parameters/rowFilter.companySettings.accountingActivatedBy"
},
- {
- $ref: "#/parameters/rowFilter.companySettings.requireBackflushStorageUnit"
- },
{
$ref: "#/parameters/rowFilter.companySettings.leaseIncrementalBorrowingRate"
},
@@ -102921,6 +102927,9 @@ export default {
{
$ref: "#/parameters/rowFilter.companySettings.leaseReminderDays"
},
+ {
+ $ref: "#/parameters/rowFilter.companySettings.requireBackflushStorageUnit"
+ },
{
$ref: "#/parameters/rowFilter.companySettings.preventNegativeBackflush"
},
@@ -164340,6 +164349,10 @@ export default {
guidePath: {
format: "text",
type: "string"
+ },
+ videoUrl: {
+ format: "text",
+ type: "string"
}
},
type: "object"
@@ -166787,10 +166800,10 @@ export default {
"leaseDefaultDiscountRate",
"invoiceAutomation",
"invoiceNotificationGroup",
- "requireBackflushStorageUnit",
"leaseIncrementalBorrowingRate",
"leaseShortTermExpedient",
"leaseReminderDays",
+ "requireBackflushStorageUnit",
"preventNegativeBackflush",
"receiptQuantitiesStartAtZero"
],
@@ -167166,11 +167179,6 @@ export default {
format: "text",
type: "string"
},
- requireBackflushStorageUnit: {
- default: false,
- format: "boolean",
- type: "boolean"
- },
leaseIncrementalBorrowingRate: {
default: 6,
format: "numeric",
@@ -167186,6 +167194,11 @@ export default {
format: "integer",
type: "integer"
},
+ requireBackflushStorageUnit: {
+ default: false,
+ format: "boolean",
+ type: "boolean"
+ },
preventNegativeBackflush: {
default: true,
format: "boolean",
@@ -219702,6 +219715,12 @@ export default {
in: "query",
type: "string"
},
+ "rowFilter.training.videoUrl": {
+ name: "videoUrl",
+ required: false,
+ in: "query",
+ type: "string"
+ },
"body.gauge": {
name: "gauge",
description: "gauge",
@@ -222766,12 +222785,6 @@ export default {
in: "query",
type: "string"
},
- "rowFilter.companySettings.requireBackflushStorageUnit": {
- name: "requireBackflushStorageUnit",
- required: false,
- in: "query",
- type: "string"
- },
"rowFilter.companySettings.leaseIncrementalBorrowingRate": {
name: "leaseIncrementalBorrowingRate",
required: false,
@@ -222790,6 +222803,12 @@ export default {
in: "query",
type: "string"
},
+ "rowFilter.companySettings.requireBackflushStorageUnit": {
+ name: "requireBackflushStorageUnit",
+ required: false,
+ in: "query",
+ type: "string"
+ },
"rowFilter.companySettings.preventNegativeBackflush": {
name: "preventNegativeBackflush",
required: false,
diff --git a/packages/database/src/types.ts b/packages/database/src/types.ts
index 0f39a34359..233f50c863 100644
--- a/packages/database/src/types.ts
+++ b/packages/database/src/types.ts
@@ -69371,6 +69371,7 @@ export type Database = {
updatedAt: string | null
updatedBy: string | null
version: number
+ videoUrl: string | null
}
Insert: {
assignee?: string | null
@@ -69392,6 +69393,7 @@ export type Database = {
updatedAt?: string | null
updatedBy?: string | null
version?: number
+ videoUrl?: string | null
}
Update: {
assignee?: string | null
@@ -69413,6 +69415,7 @@ export type Database = {
updatedAt?: string | null
updatedBy?: string | null
version?: number
+ videoUrl?: string | null
}
Relationships: [
{
diff --git a/packages/database/supabase/migrations/20261022045258_training-video.sql b/packages/database/supabase/migrations/20261022045258_training-video.sql
new file mode 100644
index 0000000000..aa672393d7
--- /dev/null
+++ b/packages/database/supabase/migrations/20261022045258_training-video.sql
@@ -0,0 +1,4 @@
+-- A training's content can also be one YouTube video, stored as its watch
+-- link. Like the PDF guide, it replaces the written content.
+ALTER TABLE "training"
+ ADD COLUMN IF NOT EXISTS "videoUrl" TEXT;
diff --git a/packages/jobs/manifests/schema.json b/packages/jobs/manifests/schema.json
index 5fd82b1077..c893edd9ca 100644
--- a/packages/jobs/manifests/schema.json
+++ b/packages/jobs/manifests/schema.json
@@ -1,11 +1,11 @@
{
"kind": "carbon-company-backup",
"version": 1,
- "schemaVersion": "20261020051356",
+ "schemaVersion": "20261022045258",
"sourceCompanyId": "schema-baseline",
"sourceCompanyGroupId": null,
"sourceCompanyName": null,
- "exportedAt": "2026-10-20T05:29:25.062Z",
+ "exportedAt": "2026-10-22T06:31:40.888Z",
"exportedBy": "schema-baseline",
"label": "schema baseline",
"includeStorage": "none",
@@ -2445,7 +2445,8 @@
"updatedAt",
"updatedBy",
"grantsAbilityId",
- "guidePath"
+ "guidePath",
+ "videoUrl"
]
},
{
diff --git a/packages/locale/locales/de/erp.po b/packages/locale/locales/de/erp.po
index c1cba7fb22..a268cbf906 100644
--- a/packages/locale/locales/de/erp.po
+++ b/packages/locale/locales/de/erp.po
@@ -9153,6 +9153,9 @@ msgstr "Geben Sie auf mindestens einer Position eine empfangene Menge ein oder w
msgid "Enter a web address, such as https://example.com"
msgstr "Geben Sie eine Webadresse ein, z. B. https://example.com"
+msgid "Enter a YouTube video link"
+msgstr ""
+
msgid "Enter an item and quantity yourself."
msgstr "Geben Sie einen Artikel und eine Menge selbst ein."
@@ -15314,6 +15317,9 @@ msgstr "Keine Variablen verfügbar"
msgid "No versions available"
msgstr "Keine Versionen verfügbar"
+msgid "No video added"
+msgstr ""
+
msgid "No warehouse stock is on record for this item. You can still pick it — on-hand will go negative until the count is reconciled."
msgstr "Kein Lagerbestand für diesen Artikel ist erfasst. Sie können ihn trotzdem kommissionieren — der verfügbare Bestand wird negativ, bis die Inventur abgestimmt ist."
@@ -16557,6 +16563,9 @@ msgstr "Überfällig"
msgid "Past end date"
msgstr "Nach dem Enddatum"
+msgid "Paste a YouTube video link"
+msgstr ""
+
msgid "Paste the metadata XML if your identity provider does not publish a metadata URL"
msgstr "Fügen Sie die Metadaten-XML ein, wenn Ihr Identitätsanbieter keine Metadaten-URL veröffentlicht"
@@ -18843,6 +18852,9 @@ msgstr "Zwei-Faktor-Authentifizierung entfernen"
msgid "Remove Unit"
msgstr "Einheit entfernen"
+msgid "Remove Video"
+msgstr ""
+
msgid "Removed"
msgstr "Entfernt"
@@ -22369,9 +22381,15 @@ msgstr "Modul wechseln"
msgid "Switch to pan mode"
msgstr "Zum Schwenkmodus wechseln"
+msgid "Switch to PDF"
+msgstr ""
+
msgid "Switch to select mode"
msgstr "Zum Auswahlmodus wechseln"
+msgid "Switch to Video"
+msgstr ""
+
msgid "Switch to Written Content"
msgstr "Zu schriftlichen Inhalten wechseln"
@@ -24140,8 +24158,11 @@ msgstr "Dieses Quartal"
msgid "This receipt has no lines. Choose a source document to add them."
msgstr "Dieser Wareneingang hat keine Positionen. Wählen Sie zum Hinzufügen einen Ursprungsbeleg."
-msgid "This removes the PDF. Employees will see the written content instead."
-msgstr "Dies entfernt das PDF. Mitarbeiter sehen stattdessen den schriftlichen Inhalt."
+msgid "This removes the PDF. Employees will see the new content instead."
+msgstr ""
+
+msgid "This removes the video. Employees will see the new content instead."
+msgstr ""
msgid "This removes their authenticator app, so their next sign-in only needs a magic link. Use this when they have lost access to their authenticator. It affects their sign-in for every company they belong to."
msgstr "Dies entfernt ihre Authentifizierungs-App, daher benötigt ihre nächste Anmeldung nur einen Magic Link. Verwenden Sie dies, wenn sie den Zugriff auf ihre Authentifizierungs-App verloren haben. Dies wirkt sich auf ihre Anmeldung bei jedem Unternehmen aus, zu dem sie gehören."
@@ -24754,6 +24775,9 @@ msgstr "Schulungsplan"
msgid "Training taken outside Carbon, such as a vendor course. The assignment has only a name. An admin marks each employee complete and can attach their certificate."
msgstr "Schulung außerhalb von Carbon absolviert, z.B. ein Lieferantenkurs. Die Zuweisung hat nur einen Namen. Ein Admin markiert jeden Mitarbeiter als abgeschlossen und kann sein Zertifikat anhängen."
+msgid "Training video"
+msgstr ""
+
msgid "Training your team via the Academy and in-app guides"
msgstr "Schulung Ihres Teams über die Academy und In-App-Leitfäden"
@@ -26137,8 +26161,8 @@ msgstr "Wie viel jedes Anlagegut wert ist, wie lange es dauert und was damit am
msgid "What each period's payment is for this asset in the first year"
msgstr "Welche Zahlung jeder Periode für dieses Anlagegut im ersten Jahr ist"
-msgid "What employees read before the questions"
-msgstr "Was Mitarbeiter vor den Fragen lesen"
+msgid "What employees read or watch before the questions"
+msgstr ""
msgid "What happens to an invoice once it is created"
msgstr "Was mit einer Rechnung geschieht, nachdem sie erstellt wird"
@@ -26917,6 +26941,12 @@ msgstr "Ihre Lieferantenliste"
msgid "yourself"
msgstr "dir selbst"
+msgid "YouTube link"
+msgstr ""
+
+msgid "YouTube Video"
+msgstr ""
+
msgid "Z1.4 inspection level (I / II / III); higher levels mean larger sample sizes for the same lot."
msgstr "Z1.4 Prüfniveau (I / II / III); höhere Niveaus bedeuten größere Stichprobenumfänge für die gleiche Charge."
diff --git a/packages/locale/locales/en/erp.po b/packages/locale/locales/en/erp.po
index 39a2f41ebd..258d8097ff 100644
--- a/packages/locale/locales/en/erp.po
+++ b/packages/locale/locales/en/erp.po
@@ -9153,6 +9153,9 @@ msgstr "Enter a received quantity, or tick a unit, on at least one line."
msgid "Enter a web address, such as https://example.com"
msgstr "Enter a web address, such as https://example.com"
+msgid "Enter a YouTube video link"
+msgstr "Enter a YouTube video link"
+
msgid "Enter an item and quantity yourself."
msgstr "Enter an item and quantity yourself."
@@ -15314,6 +15317,9 @@ msgstr "No variables available"
msgid "No versions available"
msgstr "No versions available"
+msgid "No video added"
+msgstr "No video added"
+
msgid "No warehouse stock is on record for this item. You can still pick it — on-hand will go negative until the count is reconciled."
msgstr "No warehouse stock is on record for this item. You can still pick it — on-hand will go negative until the count is reconciled."
@@ -16557,6 +16563,9 @@ msgstr "Past due"
msgid "Past end date"
msgstr "Past end date"
+msgid "Paste a YouTube video link"
+msgstr "Paste a YouTube video link"
+
msgid "Paste the metadata XML if your identity provider does not publish a metadata URL"
msgstr "Paste the metadata XML if your identity provider does not publish a metadata URL"
@@ -18843,6 +18852,9 @@ msgstr "Remove two-factor authentication"
msgid "Remove Unit"
msgstr "Remove Unit"
+msgid "Remove Video"
+msgstr "Remove Video"
+
msgid "Removed"
msgstr "Removed"
@@ -22369,9 +22381,15 @@ msgstr "Switch module"
msgid "Switch to pan mode"
msgstr "Switch to pan mode"
+msgid "Switch to PDF"
+msgstr "Switch to PDF"
+
msgid "Switch to select mode"
msgstr "Switch to select mode"
+msgid "Switch to Video"
+msgstr "Switch to Video"
+
msgid "Switch to Written Content"
msgstr "Switch to Written Content"
@@ -24140,8 +24158,11 @@ msgstr "This Quarter"
msgid "This receipt has no lines. Choose a source document to add them."
msgstr "This receipt has no lines. Choose a source document to add them."
-msgid "This removes the PDF. Employees will see the written content instead."
-msgstr "This removes the PDF. Employees will see the written content instead."
+msgid "This removes the PDF. Employees will see the new content instead."
+msgstr "This removes the PDF. Employees will see the new content instead."
+
+msgid "This removes the video. Employees will see the new content instead."
+msgstr "This removes the video. Employees will see the new content instead."
msgid "This removes their authenticator app, so their next sign-in only needs a magic link. Use this when they have lost access to their authenticator. It affects their sign-in for every company they belong to."
msgstr "This removes their authenticator app, so their next sign-in only needs a magic link. Use this when they have lost access to their authenticator. It affects their sign-in for every company they belong to."
@@ -24754,6 +24775,9 @@ msgstr "Training Plan"
msgid "Training taken outside Carbon, such as a vendor course. The assignment has only a name. An admin marks each employee complete and can attach their certificate."
msgstr "Training taken outside Carbon, such as a vendor course. The assignment has only a name. An admin marks each employee complete and can attach their certificate."
+msgid "Training video"
+msgstr "Training video"
+
msgid "Training your team via the Academy and in-app guides"
msgstr "Training your team via the Academy and in-app guides"
@@ -26137,8 +26161,8 @@ msgstr "What each asset is worth, how long it lasts, and what happens to it at t
msgid "What each period's payment is for this asset in the first year"
msgstr "What each period's payment is for this asset in the first year"
-msgid "What employees read before the questions"
-msgstr "What employees read before the questions"
+msgid "What employees read or watch before the questions"
+msgstr "What employees read or watch before the questions"
msgid "What happens to an invoice once it is created"
msgstr "What happens to an invoice once it is created"
@@ -26920,6 +26944,12 @@ msgstr "Your vendor list"
msgid "yourself"
msgstr "yourself"
+msgid "YouTube link"
+msgstr "YouTube link"
+
+msgid "YouTube Video"
+msgstr "YouTube Video"
+
msgid "Z1.4 inspection level (I / II / III); higher levels mean larger sample sizes for the same lot."
msgstr "Z1.4 inspection level (I / II / III); higher levels mean larger sample sizes for the same lot."
diff --git a/packages/locale/locales/es/erp.po b/packages/locale/locales/es/erp.po
index ffb0800c61..4666563fe7 100644
--- a/packages/locale/locales/es/erp.po
+++ b/packages/locale/locales/es/erp.po
@@ -9153,6 +9153,9 @@ msgstr "Ingresa una cantidad recibida, o marca una unidad, en al menos una líne
msgid "Enter a web address, such as https://example.com"
msgstr "Ingrese una dirección web, por ejemplo https://example.com"
+msgid "Enter a YouTube video link"
+msgstr ""
+
msgid "Enter an item and quantity yourself."
msgstr "Ingrese un artículo y cantidad usted mismo."
@@ -15314,6 +15317,9 @@ msgstr "No hay variables disponibles"
msgid "No versions available"
msgstr "No hay versiones disponibles"
+msgid "No video added"
+msgstr ""
+
msgid "No warehouse stock is on record for this item. You can still pick it — on-hand will go negative until the count is reconciled."
msgstr "No hay stock de almacén registrado para este artículo. Aún puedes recogerlo — el disponible se volverá negativo hasta que se reconcilie el recuento."
@@ -16557,6 +16563,9 @@ msgstr "Vencido"
msgid "Past end date"
msgstr "Más allá de la fecha de finalización"
+msgid "Paste a YouTube video link"
+msgstr ""
+
msgid "Paste the metadata XML if your identity provider does not publish a metadata URL"
msgstr "Pegue el XML de metadatos si su proveedor de identidad no publica una URL de metadatos"
@@ -18843,6 +18852,9 @@ msgstr "Quitar autenticación de dos factores"
msgid "Remove Unit"
msgstr "Quitar unidad"
+msgid "Remove Video"
+msgstr ""
+
msgid "Removed"
msgstr "Eliminado"
@@ -22369,9 +22381,15 @@ msgstr "Cambiar módulo"
msgid "Switch to pan mode"
msgstr "Cambiar a modo panorámico"
+msgid "Switch to PDF"
+msgstr ""
+
msgid "Switch to select mode"
msgstr "Cambiar a modo selección"
+msgid "Switch to Video"
+msgstr ""
+
msgid "Switch to Written Content"
msgstr "Cambiar a contenido escrito"
@@ -24140,8 +24158,11 @@ msgstr "Este Trimestre"
msgid "This receipt has no lines. Choose a source document to add them."
msgstr "Esta recepción no tiene líneas. Elija un documento de origen para agregarlas."
-msgid "This removes the PDF. Employees will see the written content instead."
-msgstr "Esto quita el PDF. Los empleados verán el contenido escrito en su lugar."
+msgid "This removes the PDF. Employees will see the new content instead."
+msgstr ""
+
+msgid "This removes the video. Employees will see the new content instead."
+msgstr ""
msgid "This removes their authenticator app, so their next sign-in only needs a magic link. Use this when they have lost access to their authenticator. It affects their sign-in for every company they belong to."
msgstr "Esto elimina su aplicación autenticadora, por lo que su próximo inicio de sesión solo necesita un enlace mágico. Usa esto cuando hayan perdido acceso a su autenticador. Afecta su inicio de sesión en cada empresa a la que pertenecen."
@@ -24754,6 +24775,9 @@ msgstr "Plan de Capacitación"
msgid "Training taken outside Carbon, such as a vendor course. The assignment has only a name. An admin marks each employee complete and can attach their certificate."
msgstr "Capacitación realizada fuera de Carbon, como un curso de proveedor. La asignación solo tiene un nombre. Un administrador marca como completado a cada empleado y puede adjuntar su certificado."
+msgid "Training video"
+msgstr ""
+
msgid "Training your team via the Academy and in-app guides"
msgstr "Capacitar a tu equipo a través de la Academia y guías en la aplicación"
@@ -26137,8 +26161,8 @@ msgstr "Cuál es el valor de cada activo, cuánto dura y qué sucede al final de
msgid "What each period's payment is for this asset in the first year"
msgstr "Cuál es el pago de cada período para este activo en el primer año"
-msgid "What employees read before the questions"
-msgstr "Lo que los empleados leen antes de las preguntas"
+msgid "What employees read or watch before the questions"
+msgstr ""
msgid "What happens to an invoice once it is created"
msgstr "Qué sucede a una factura una vez que se crea"
@@ -26917,6 +26941,12 @@ msgstr "Tu lista de proveedores"
msgid "yourself"
msgstr "ti mismo"
+msgid "YouTube link"
+msgstr ""
+
+msgid "YouTube Video"
+msgstr ""
+
msgid "Z1.4 inspection level (I / II / III); higher levels mean larger sample sizes for the same lot."
msgstr "Nivel de inspección Z1.4 (I / II / III); los niveles más altos significan tamaños de muestra más grandes para el mismo lote."
diff --git a/packages/locale/locales/fr/erp.po b/packages/locale/locales/fr/erp.po
index 1094c1e2c1..73446876a0 100644
--- a/packages/locale/locales/fr/erp.po
+++ b/packages/locale/locales/fr/erp.po
@@ -9153,6 +9153,9 @@ msgstr "Saisissez une quantité reçue ou cochez une unité sur au moins une lig
msgid "Enter a web address, such as https://example.com"
msgstr "Entrez une adresse web, par exemple https://example.com"
+msgid "Enter a YouTube video link"
+msgstr ""
+
msgid "Enter an item and quantity yourself."
msgstr "Entrez un article et une quantité vous-même."
@@ -15314,6 +15317,9 @@ msgstr "Aucune variable disponible"
msgid "No versions available"
msgstr "Aucune version disponible"
+msgid "No video added"
+msgstr ""
+
msgid "No warehouse stock is on record for this item. You can still pick it — on-hand will go negative until the count is reconciled."
msgstr "Aucun stock d'entrepôt n'est enregistré pour cet article. Vous pouvez toujours le prélever — le stock disponible deviendra négatif jusqu'à ce que le décompte soit rapproché."
@@ -16557,6 +16563,9 @@ msgstr "Dépassé"
msgid "Past end date"
msgstr "Après la date de fin"
+msgid "Paste a YouTube video link"
+msgstr ""
+
msgid "Paste the metadata XML if your identity provider does not publish a metadata URL"
msgstr "Collez le XML de métadonnées si votre fournisseur d'identité ne publie pas d'URL de métadonnées"
@@ -18843,6 +18852,9 @@ msgstr "Retirer l'authentification à deux facteurs"
msgid "Remove Unit"
msgstr "Retirer l'unité"
+msgid "Remove Video"
+msgstr ""
+
msgid "Removed"
msgstr "Supprimé"
@@ -22369,9 +22381,15 @@ msgstr "Changer de module"
msgid "Switch to pan mode"
msgstr "Passer en mode panoramique"
+msgid "Switch to PDF"
+msgstr ""
+
msgid "Switch to select mode"
msgstr "Passer en mode sélection"
+msgid "Switch to Video"
+msgstr ""
+
msgid "Switch to Written Content"
msgstr "Passer au contenu écrit"
@@ -24140,8 +24158,11 @@ msgstr "Ce trimestre"
msgid "This receipt has no lines. Choose a source document to add them."
msgstr "Cette réception n'a pas de lignes. Choisissez un document d'origine pour les ajouter."
-msgid "This removes the PDF. Employees will see the written content instead."
-msgstr "Cela supprime le PDF. Les employés verront le contenu écrit à la place."
+msgid "This removes the PDF. Employees will see the new content instead."
+msgstr ""
+
+msgid "This removes the video. Employees will see the new content instead."
+msgstr ""
msgid "This removes their authenticator app, so their next sign-in only needs a magic link. Use this when they have lost access to their authenticator. It affects their sign-in for every company they belong to."
msgstr "Ceci supprime leur application d'authentification, de sorte que leur prochain accès ne nécessite qu'un lien magique. Utilisez cette option lorsqu'ils ont perdu l'accès à leur authentificateur. Cela affecte leur accès pour chaque société à laquelle ils appartiennent."
@@ -24754,6 +24775,9 @@ msgstr "Plan de formation"
msgid "Training taken outside Carbon, such as a vendor course. The assignment has only a name. An admin marks each employee complete and can attach their certificate."
msgstr "Formation suivie en dehors de Carbon, comme une formation de fournisseur. L'affectation n'a qu'un nom. Un administrateur marque chaque employé comme terminé et peut joindre son certificat."
+msgid "Training video"
+msgstr ""
+
msgid "Training your team via the Academy and in-app guides"
msgstr "Formation de votre équipe via l'Academy et les guides intégrés"
@@ -26137,8 +26161,8 @@ msgstr "La valeur de chaque immobilisation, sa durée de vie et ce qui s'en pass
msgid "What each period's payment is for this asset in the first year"
msgstr "Quel est le paiement de chaque période pour cette immobilisation la première année"
-msgid "What employees read before the questions"
-msgstr "Ce que les employés lisent avant les questions"
+msgid "What employees read or watch before the questions"
+msgstr ""
msgid "What happens to an invoice once it is created"
msgstr "Ce qui se passe pour une facture une fois créée"
@@ -26917,6 +26941,12 @@ msgstr "Votre liste de fournisseurs"
msgid "yourself"
msgstr "vous-même"
+msgid "YouTube link"
+msgstr ""
+
+msgid "YouTube Video"
+msgstr ""
+
msgid "Z1.4 inspection level (I / II / III); higher levels mean larger sample sizes for the same lot."
msgstr "Niveau de contrôle Z1.4 (I / II / III) ; les niveaux supérieurs signifient des tailles d'échantillon plus grandes pour le même lot."
diff --git a/packages/locale/locales/hi/erp.po b/packages/locale/locales/hi/erp.po
index 7cedaecf9a..2b0719f6a3 100644
--- a/packages/locale/locales/hi/erp.po
+++ b/packages/locale/locales/hi/erp.po
@@ -9153,6 +9153,9 @@ msgstr "कम से कम एक पंक्ति पर एक प्र
msgid "Enter a web address, such as https://example.com"
msgstr "वेब पता दर्ज करें, जैसे https://example.com"
+msgid "Enter a YouTube video link"
+msgstr ""
+
msgid "Enter an item and quantity yourself."
msgstr "आइटम और मात्रा स्वयं दर्ज करें।"
@@ -15314,6 +15317,9 @@ msgstr "कोई चर उपलब्ध नहीं"
msgid "No versions available"
msgstr "कोई संस्करण उपलब्ध नहीं है"
+msgid "No video added"
+msgstr ""
+
msgid "No warehouse stock is on record for this item. You can still pick it — on-hand will go negative until the count is reconciled."
msgstr "इस आइटम के लिए कोई गोदाम स्टॉक रिकॉर्ड पर नहीं है। आप इसे अभी भी चुन सकते हैं — गणना के समाधान तक हाथ पर नकारात्मक हो जाएगा।"
@@ -16557,6 +16563,9 @@ msgstr "अतिदेय"
msgid "Past end date"
msgstr "समाप्ति तारीख के बाद"
+msgid "Paste a YouTube video link"
+msgstr ""
+
msgid "Paste the metadata XML if your identity provider does not publish a metadata URL"
msgstr "मेटाडेटा XML को पेस्ट करें यदि आपका आइडेंटिटी प्रदाता मेटाडेटा URL प्रकाशित नहीं करता है"
@@ -18843,6 +18852,9 @@ msgstr "दो-कारक प्रमाणीकरण निकालें
msgid "Remove Unit"
msgstr "इकाई निकालें"
+msgid "Remove Video"
+msgstr ""
+
msgid "Removed"
msgstr "हटाया गया"
@@ -22369,9 +22381,15 @@ msgstr "मॉड्यूल स्विच करें"
msgid "Switch to pan mode"
msgstr "पैन मोड में स्विच करें"
+msgid "Switch to PDF"
+msgstr ""
+
msgid "Switch to select mode"
msgstr "चयन मोड में स्विच करें"
+msgid "Switch to Video"
+msgstr ""
+
msgid "Switch to Written Content"
msgstr "लिखित सामग्री पर स्विच करें"
@@ -24140,8 +24158,11 @@ msgstr "इस त्रैमासिक"
msgid "This receipt has no lines. Choose a source document to add them."
msgstr "इस प्राप्ति में कोई पंक्तियाँ नहीं हैं। स्रोत दस्तावेज़ चुनकर पंक्तियाँ जोड़ें।"
-msgid "This removes the PDF. Employees will see the written content instead."
-msgstr "यह PDF को हटाता है। कर्मचारी इसके बजाय लिखित सामग्री देखेंगे।"
+msgid "This removes the PDF. Employees will see the new content instead."
+msgstr ""
+
+msgid "This removes the video. Employees will see the new content instead."
+msgstr ""
msgid "This removes their authenticator app, so their next sign-in only needs a magic link. Use this when they have lost access to their authenticator. It affects their sign-in for every company they belong to."
msgstr "यह उनके प्रमाणीकरणकर्ता ऐप को निकालता है, इसलिए उनके अगले साइन-इन के लिए केवल एक जादुई लिंक की आवश्यकता होती है। जब वे अपने प्रमाणीकरणकर्ता तक पहुंच खो गए हों तो इसका उपयोग करें। यह उनके साइन-इन को उन सभी कंपनियों के लिए प्रभावित करता है जिनसे वे संबंधित हैं।"
@@ -24754,6 +24775,9 @@ msgstr "प्रशिक्षण योजना"
msgid "Training taken outside Carbon, such as a vendor course. The assignment has only a name. An admin marks each employee complete and can attach their certificate."
msgstr "Carbon के बाहर लिया गया प्रशिक्षण, जैसे विक्रेता पाठ्यक्रम। असाइनमेंट के पास केवल एक नाम है। एक प्रशासक प्रत्येक कर्मचारी को पूर्ण करता है और उनके प्रमाण पत्र को संलग्न कर सकता है।"
+msgid "Training video"
+msgstr ""
+
msgid "Training your team via the Academy and in-app guides"
msgstr "Academy और इन-ऐप गाइड के माध्यम से अपनी टीम को प्रशिक्षण दें"
@@ -26137,8 +26161,8 @@ msgstr "प्रत्येक संपत्ति का मूल्य
msgid "What each period's payment is for this asset in the first year"
msgstr "पहले वर्ष में इस संपत्ति के लिए प्रत्येक अवधि का भुगतान क्या है"
-msgid "What employees read before the questions"
-msgstr "कर्मचारी प्रश्नों से पहले क्या पढ़ते हैं"
+msgid "What employees read or watch before the questions"
+msgstr ""
msgid "What happens to an invoice once it is created"
msgstr "एक चालान बनाए जाने के बाद क्या होता है"
@@ -26920,6 +26944,12 @@ msgstr "आपकी विक्रेता सूची"
msgid "yourself"
msgstr "अपने आप"
+msgid "YouTube link"
+msgstr ""
+
+msgid "YouTube Video"
+msgstr ""
+
msgid "Z1.4 inspection level (I / II / III); higher levels mean larger sample sizes for the same lot."
msgstr "Z1.4 निरीक्षण स्तर (I / II / III); उच्च स्तर का मतलब एक ही लॉट के लिए बड़े नमूने आकार।"
diff --git a/packages/locale/locales/it/erp.po b/packages/locale/locales/it/erp.po
index 59a618a63d..53b7a473af 100644
--- a/packages/locale/locales/it/erp.po
+++ b/packages/locale/locales/it/erp.po
@@ -9153,6 +9153,9 @@ msgstr "Inserisci una quantità ricevuta o spunta un'unità su almeno una riga."
msgid "Enter a web address, such as https://example.com"
msgstr "Inserisci un indirizzo web, ad esempio https://example.com"
+msgid "Enter a YouTube video link"
+msgstr ""
+
msgid "Enter an item and quantity yourself."
msgstr "Inserisci un articolo e una quantità tu stesso."
@@ -15314,6 +15317,9 @@ msgstr "Nessuna variabile disponibile"
msgid "No versions available"
msgstr "Nessuna versione disponibile"
+msgid "No video added"
+msgstr ""
+
msgid "No warehouse stock is on record for this item. You can still pick it — on-hand will go negative until the count is reconciled."
msgstr "Non c'è giacenza in deposito registrata per questo articolo. Puoi comunque farne un prelievo — la giacenza andrà negativa fino a quando il conteggio non sarà riconciliato."
@@ -16557,6 +16563,9 @@ msgstr "Scaduto"
msgid "Past end date"
msgstr "Oltre la data di fine"
+msgid "Paste a YouTube video link"
+msgstr ""
+
msgid "Paste the metadata XML if your identity provider does not publish a metadata URL"
msgstr "Incolla l'XML dei metadati se il tuo provider di identità non pubblica un URL di metadati"
@@ -18843,6 +18852,9 @@ msgstr "Rimuovi autenticazione a due fattori"
msgid "Remove Unit"
msgstr "Rimuovi unità"
+msgid "Remove Video"
+msgstr ""
+
msgid "Removed"
msgstr "Rimosso"
@@ -22369,9 +22381,15 @@ msgstr "Cambia modulo"
msgid "Switch to pan mode"
msgstr "Passa alla modalità panorama"
+msgid "Switch to PDF"
+msgstr ""
+
msgid "Switch to select mode"
msgstr "Passa alla modalità selezione"
+msgid "Switch to Video"
+msgstr ""
+
msgid "Switch to Written Content"
msgstr "Passa al contenuto scritto"
@@ -24140,8 +24158,11 @@ msgstr "Questo Trimestre"
msgid "This receipt has no lines. Choose a source document to add them."
msgstr "Questa ricezione non ha righe. Scegliere un documento di origine per aggiungerle."
-msgid "This removes the PDF. Employees will see the written content instead."
-msgstr "Questo rimuove il PDF. I dipendenti vedranno il contenuto scritto."
+msgid "This removes the PDF. Employees will see the new content instead."
+msgstr ""
+
+msgid "This removes the video. Employees will see the new content instead."
+msgstr ""
msgid "This removes their authenticator app, so their next sign-in only needs a magic link. Use this when they have lost access to their authenticator. It affects their sign-in for every company they belong to."
msgstr "Questo rimuove la loro app autenticatore, quindi il loro prossimo accesso ha bisogno solo di un collegamento magico. Usalo quando hanno perso l'accesso al loro autenticatore. Influisce sul loro accesso per ogni azienda a cui appartengono."
@@ -24754,6 +24775,9 @@ msgstr "Piano di Formazione"
msgid "Training taken outside Carbon, such as a vendor course. The assignment has only a name. An admin marks each employee complete and can attach their certificate."
msgstr "Formazione seguita all'esterno di Carbon, come un corso di un fornitore. L'incarico ha solo un nome. Un amministratore contrassegna ogni dipendente come completato e può allegare il certificato."
+msgid "Training video"
+msgstr ""
+
msgid "Training your team via the Academy and in-app guides"
msgstr "Formazione del tuo team tramite l'Academy e le guide in-app"
@@ -26137,8 +26161,8 @@ msgstr "Il valore di ogni cespite, la sua durata e cosa accade al termine del pe
msgid "What each period's payment is for this asset in the first year"
msgstr "L'importo del pagamento di ogni periodo per questo cespite nel primo anno"
-msgid "What employees read before the questions"
-msgstr "Quello che i dipendenti leggono prima delle domande"
+msgid "What employees read or watch before the questions"
+msgstr ""
msgid "What happens to an invoice once it is created"
msgstr "Cosa accade a una fattura una volta creata"
@@ -26917,6 +26941,12 @@ msgstr "Il tuo elenco di fornitori"
msgid "yourself"
msgstr "te stesso"
+msgid "YouTube link"
+msgstr ""
+
+msgid "YouTube Video"
+msgstr ""
+
msgid "Z1.4 inspection level (I / II / III); higher levels mean larger sample sizes for the same lot."
msgstr "Livello di controllo Z1.4 (I / II / III); i livelli più alti significano dimensioni del campione più grandi per lo stesso lotto."
diff --git a/packages/locale/locales/ja/erp.po b/packages/locale/locales/ja/erp.po
index bb7e79bc28..ffc723202e 100644
--- a/packages/locale/locales/ja/erp.po
+++ b/packages/locale/locales/ja/erp.po
@@ -9153,6 +9153,9 @@ msgstr "少なくとも1つの明細で、受取数量を入力するか個を
msgid "Enter a web address, such as https://example.com"
msgstr "Webアドレスを入力してください(例: https://example.com)"
+msgid "Enter a YouTube video link"
+msgstr ""
+
msgid "Enter an item and quantity yourself."
msgstr "品目と数量を手動で入力してください。"
@@ -15314,6 +15317,9 @@ msgstr "利用可能な変数がありません"
msgid "No versions available"
msgstr "利用可能なバージョンがありません"
+msgid "No video added"
+msgstr ""
+
msgid "No warehouse stock is on record for this item. You can still pick it — on-hand will go negative until the count is reconciled."
msgstr "このアイテムの倉庫在庫は記録されていません。それでも選択できます。実在庫がマイナスになり、数量が調整されるまで続きます。"
@@ -16557,6 +16563,9 @@ msgstr "期限切れ"
msgid "Past end date"
msgstr "終了日を超過"
+msgid "Paste a YouTube video link"
+msgstr ""
+
msgid "Paste the metadata XML if your identity provider does not publish a metadata URL"
msgstr "IDプロバイダーがメタデータURLを公開していない場合は、メタデータXMLを貼り付けてください"
@@ -18843,6 +18852,9 @@ msgstr "二要素認証を除去"
msgid "Remove Unit"
msgstr "個を除去"
+msgid "Remove Video"
+msgstr ""
+
msgid "Removed"
msgstr "削除済み"
@@ -22369,9 +22381,15 @@ msgstr "モジュールを切り替える"
msgid "Switch to pan mode"
msgstr "パンモードに切り替え"
+msgid "Switch to PDF"
+msgstr ""
+
msgid "Switch to select mode"
msgstr "選択モードに切り替え"
+msgid "Switch to Video"
+msgstr ""
+
msgid "Switch to Written Content"
msgstr "記述内容に切り替える"
@@ -24140,8 +24158,11 @@ msgstr "今四半期"
msgid "This receipt has no lines. Choose a source document to add them."
msgstr "この入荷には明細がありません。参照伝票を選択して追加してください。"
-msgid "This removes the PDF. Employees will see the written content instead."
-msgstr "これはPDFを除去します。従業員は代わりに記述内容を表示します。"
+msgid "This removes the PDF. Employees will see the new content instead."
+msgstr ""
+
+msgid "This removes the video. Employees will see the new content instead."
+msgstr ""
msgid "This removes their authenticator app, so their next sign-in only needs a magic link. Use this when they have lost access to their authenticator. It affects their sign-in for every company they belong to."
msgstr "これにより認証器アプリが削除されるため、次回のサインインはマジックリンクのみが必要になります。認証器へのアクセスを失った場合にこれを使用してください。彼らが属するすべての会社のサインインに影響します。"
@@ -24754,6 +24775,9 @@ msgstr "教育訓練計画"
msgid "Training taken outside Carbon, such as a vendor course. The assignment has only a name. An admin marks each employee complete and can attach their certificate."
msgstr "Carbonの外で実施された教育訓練(例:ベンダーコース)。割り当ては名前のみです。管理者が各従業員を完了にし、証明書を添付できます。"
+msgid "Training video"
+msgstr ""
+
msgid "Training your team via the Academy and in-app guides"
msgstr "アカデミーとアプリ内ガイドを使用してチームを教育訓練します。"
@@ -26137,8 +26161,8 @@ msgstr "各資産の価値、耐用年数、および期間終了時の処遇。
msgid "What each period's payment is for this asset in the first year"
msgstr "このアセットの初年度における各期の支払額"
-msgid "What employees read before the questions"
-msgstr "従業員が問題前に読む内容"
+msgid "What employees read or watch before the questions"
+msgstr ""
msgid "What happens to an invoice once it is created"
msgstr "請求書が作成されたら何が起こるか"
@@ -26917,6 +26941,12 @@ msgstr "あなたのベンダーリスト"
msgid "yourself"
msgstr "自分自身"
+msgid "YouTube link"
+msgstr ""
+
+msgid "YouTube Video"
+msgstr ""
+
msgid "Z1.4 inspection level (I / II / III); higher levels mean larger sample sizes for the same lot."
msgstr "Z1.4検査水準(I / II / III);高いレベルほど、同じロットのサンプルサイズが大きくなります。"
diff --git a/packages/locale/locales/ko/erp.po b/packages/locale/locales/ko/erp.po
index 9618c9532d..dbb4e0ddba 100644
--- a/packages/locale/locales/ko/erp.po
+++ b/packages/locale/locales/ko/erp.po
@@ -9153,6 +9153,9 @@ msgstr "최소한 하나의 라인에 수량을 입력하거나 개를 체크하
msgid "Enter a web address, such as https://example.com"
msgstr "웹 주소를 입력하세요(예: https://example.com)"
+msgid "Enter a YouTube video link"
+msgstr ""
+
msgid "Enter an item and quantity yourself."
msgstr "품목과 수량을 직접 입력하세요."
@@ -15314,6 +15317,9 @@ msgstr "사용 가능한 변수가 없습니다."
msgid "No versions available"
msgstr "가용한 버전이 없습니다"
+msgid "No video added"
+msgstr ""
+
msgid "No warehouse stock is on record for this item. You can still pick it — on-hand will go negative until the count is reconciled."
msgstr "이 품목에 대한 창고 재고 기록이 없습니다. 그래도 피킹할 수 있으며, 실사로 수량이 조정될 때까지 보유수량이 음수로 표시됩니다."
@@ -16557,6 +16563,9 @@ msgstr "기한 초과"
msgid "Past end date"
msgstr "종료 날짜 지남"
+msgid "Paste a YouTube video link"
+msgstr ""
+
msgid "Paste the metadata XML if your identity provider does not publish a metadata URL"
msgstr "자격 증명 공급자가 메타데이터 URL을 게시하지 않는 경우 메타데이터 XML을 붙여넣으세요"
@@ -18843,6 +18852,9 @@ msgstr "2단계 인증 제거"
msgid "Remove Unit"
msgstr "단위 제거"
+msgid "Remove Video"
+msgstr ""
+
msgid "Removed"
msgstr "제거됨"
@@ -22369,9 +22381,15 @@ msgstr "모듈 전환"
msgid "Switch to pan mode"
msgstr "팬 모드로 전환"
+msgid "Switch to PDF"
+msgstr ""
+
msgid "Switch to select mode"
msgstr "선택 모드로 전환"
+msgid "Switch to Video"
+msgstr ""
+
msgid "Switch to Written Content"
msgstr "작성된 콘텐츠로 전환"
@@ -24140,8 +24158,11 @@ msgstr "이번 분기"
msgid "This receipt has no lines. Choose a source document to add them."
msgstr "이 입고에는 항목이 없습니다. 추가하려면 원본 문서를 선택하십시오."
-msgid "This removes the PDF. Employees will see the written content instead."
-msgstr "이렇게 하면 PDF가 제거됩니다. 직원들은 대신 작성된 콘텐츠를 보게 됩니다."
+msgid "This removes the PDF. Employees will see the new content instead."
+msgstr ""
+
+msgid "This removes the video. Employees will see the new content instead."
+msgstr ""
msgid "This removes their authenticator app, so their next sign-in only needs a magic link. Use this when they have lost access to their authenticator. It affects their sign-in for every company they belong to."
msgstr "이것은 그들의 인증 앱을 제거하므로 다음 로그인에는 매직 링크만 필요합니다. 그들이 인증 수단에 대한 접근을 잃었을 때 이것을 사용하세요. 이것은 그들이 속한 모든 회사에 대한 로그인에 영향을 미칩니다."
@@ -24754,6 +24775,9 @@ msgstr "교육 계획"
msgid "Training taken outside Carbon, such as a vendor course. The assignment has only a name. An admin marks each employee complete and can attach their certificate."
msgstr "Carbon 외부에서 수행된 교육(예: 공급업체 과정). 할당은 이름만 있습니다. 관리자가 각 직원을 완료 처리하고 인증서를 첨부할 수 있습니다."
+msgid "Training video"
+msgstr ""
+
msgid "Training your team via the Academy and in-app guides"
msgstr "아카데미와 인앱 가이드를 통한 팀 교육"
@@ -26137,8 +26161,8 @@ msgstr "각 자산의 가치, 지속 기간, 계약 종료 시 처리 방법입
msgid "What each period's payment is for this asset in the first year"
msgstr "첫 해에 이 자산에 대한 각 기간의 지불액"
-msgid "What employees read before the questions"
-msgstr "직원들이 질문 전에 읽는 내용"
+msgid "What employees read or watch before the questions"
+msgstr ""
msgid "What happens to an invoice once it is created"
msgstr "송장이 생성된 후 어떤 일이 일어나는지"
@@ -26917,6 +26941,12 @@ msgstr "공급업체 목록"
msgid "yourself"
msgstr "본인"
+msgid "YouTube link"
+msgstr ""
+
+msgid "YouTube Video"
+msgstr ""
+
msgid "Z1.4 inspection level (I / II / III); higher levels mean larger sample sizes for the same lot."
msgstr "Z1.4 검사 수준(I / II / III)으로, 수준이 높을수록 동일 로트에 대한 샘플 크기가 커집니다."
diff --git a/packages/locale/locales/pl/erp.po b/packages/locale/locales/pl/erp.po
index 3860592e05..eb5c0f5f6e 100644
--- a/packages/locale/locales/pl/erp.po
+++ b/packages/locale/locales/pl/erp.po
@@ -9153,6 +9153,9 @@ msgstr "Wpisz ilość na co najmniej jednej pozycji lub zaznacz sztukę."
msgid "Enter a web address, such as https://example.com"
msgstr "Wprowadź adres internetowy, np. https://example.com"
+msgid "Enter a YouTube video link"
+msgstr ""
+
msgid "Enter an item and quantity yourself."
msgstr "Wpisz artykuł i ilość samodzielnie."
@@ -15314,6 +15317,9 @@ msgstr "Brak dostępnych zmiennych"
msgid "No versions available"
msgstr "Brak dostępnych wersji"
+msgid "No video added"
+msgstr ""
+
msgid "No warehouse stock is on record for this item. You can still pick it — on-hand will go negative until the count is reconciled."
msgstr "Brak zapasu w magazynie dla tego artykułu. Możesz go mimo tego pobrać — dostępna ilość będzie ujemna do czasu uzgodnienia stanu."
@@ -16557,6 +16563,9 @@ msgstr "Zaległy"
msgid "Past end date"
msgstr "Po dacie końcowej"
+msgid "Paste a YouTube video link"
+msgstr ""
+
msgid "Paste the metadata XML if your identity provider does not publish a metadata URL"
msgstr "Wklej kod XML metadanych, jeśli Twój dostawca tożsamości nie publikuje adresu URL metadanych"
@@ -18843,6 +18852,9 @@ msgstr "Usuń z listy uwierzytelnianie dwuskładnikowe"
msgid "Remove Unit"
msgstr "Usuń Sztukę"
+msgid "Remove Video"
+msgstr ""
+
msgid "Removed"
msgstr "Usunięte"
@@ -22369,9 +22381,15 @@ msgstr "Zmień moduł"
msgid "Switch to pan mode"
msgstr "Przełącz na tryb panoramy"
+msgid "Switch to PDF"
+msgstr ""
+
msgid "Switch to select mode"
msgstr "Przełącz na tryb wyboru"
+msgid "Switch to Video"
+msgstr ""
+
msgid "Switch to Written Content"
msgstr "Przełącz na zawartość pisemną"
@@ -24140,8 +24158,11 @@ msgstr "Ten Kwartał"
msgid "This receipt has no lines. Choose a source document to add them."
msgstr "To przyjęcie nie ma żadnych linii. Wybierz dokument źródłowy, aby je dodać."
-msgid "This removes the PDF. Employees will see the written content instead."
-msgstr "To usunie PDF. Pracownicy będą widzieć zawartość pisemną zamiast tego."
+msgid "This removes the PDF. Employees will see the new content instead."
+msgstr ""
+
+msgid "This removes the video. Employees will see the new content instead."
+msgstr ""
msgid "This removes their authenticator app, so their next sign-in only needs a magic link. Use this when they have lost access to their authenticator. It affects their sign-in for every company they belong to."
msgstr "To usuwa ich aplikację uwierzytelniającą, więc ich następny login potrzebuje tylko magicznego linku. Użyj tego, gdy stracili dostęp do swojej aplikacji uwierzytelniającej. To wpływa na ich logowanie dla każdej firmy, do której należą."
@@ -24754,6 +24775,9 @@ msgstr "Plan szkoleniowy"
msgid "Training taken outside Carbon, such as a vendor course. The assignment has only a name. An admin marks each employee complete and can attach their certificate."
msgstr "Szkolenie przeprowadzone poza Carbon, takie jak kurs od dostawcy. Przypisanie ma tylko nazwę. Administrator oznacza każdego pracownika za ukańczonego i może załączyć jego certyfikat."
+msgid "Training video"
+msgstr ""
+
msgid "Training your team via the Academy and in-app guides"
msgstr "Szkolenie zespołu za pośrednictwem Academy i przewodników w aplikacji"
@@ -26137,8 +26161,8 @@ msgstr "Wartość każdego aktywa, czas jego użytkowania i co się z nim stanie
msgid "What each period's payment is for this asset in the first year"
msgstr "Jaka jest płatność za każdy okres dla tego aktywa w pierwszym roku"
-msgid "What employees read before the questions"
-msgstr "Co pracownicy czytają przed pytaniami"
+msgid "What employees read or watch before the questions"
+msgstr ""
msgid "What happens to an invoice once it is created"
msgstr "Co się stanie z fakturą po jej utworzeniu"
@@ -26917,6 +26941,12 @@ msgstr "Twoja lista dostawców"
msgid "yourself"
msgstr "siebie"
+msgid "YouTube link"
+msgstr ""
+
+msgid "YouTube Video"
+msgstr ""
+
msgid "Z1.4 inspection level (I / II / III); higher levels mean larger sample sizes for the same lot."
msgstr "Z1.4 poziom kontroli (I / II / III); wyższe poziomy oznaczają większe wielkości próbek dla tej samej partii."
diff --git a/packages/locale/locales/pt/erp.po b/packages/locale/locales/pt/erp.po
index 811a7cc426..8b4f48825a 100644
--- a/packages/locale/locales/pt/erp.po
+++ b/packages/locale/locales/pt/erp.po
@@ -9153,6 +9153,9 @@ msgstr "Insira uma quantidade recebida ou marque uma unidade em pelo menos uma l
msgid "Enter a web address, such as https://example.com"
msgstr "Insira um endereço web, por exemplo https://example.com"
+msgid "Enter a YouTube video link"
+msgstr ""
+
msgid "Enter an item and quantity yourself."
msgstr "Digite um item e quantidade você mesmo."
@@ -15314,6 +15317,9 @@ msgstr "Nenhuma variável disponível"
msgid "No versions available"
msgstr "Nenhuma versão disponível"
+msgid "No video added"
+msgstr ""
+
msgid "No warehouse stock is on record for this item. You can still pick it — on-hand will go negative until the count is reconciled."
msgstr "Nenhum estoque de armazém está registrado para este item. Você ainda pode coletá-lo — o estoque disponível ficará negativo até que a contagem seja reconciliada."
@@ -16557,6 +16563,9 @@ msgstr "Vencido"
msgid "Past end date"
msgstr "Após a Data de Término"
+msgid "Paste a YouTube video link"
+msgstr ""
+
msgid "Paste the metadata XML if your identity provider does not publish a metadata URL"
msgstr "Cole o XML de metadados se seu provedor de identidade não publicar um URL de metadados"
@@ -18843,6 +18852,9 @@ msgstr "Remover autenticação de dois fatores"
msgid "Remove Unit"
msgstr "Remover Unidade"
+msgid "Remove Video"
+msgstr ""
+
msgid "Removed"
msgstr "Removido"
@@ -22369,9 +22381,15 @@ msgstr "Mudar de módulo"
msgid "Switch to pan mode"
msgstr "Mudar para modo pan"
+msgid "Switch to PDF"
+msgstr ""
+
msgid "Switch to select mode"
msgstr "Mudar para modo selecionar"
+msgid "Switch to Video"
+msgstr ""
+
msgid "Switch to Written Content"
msgstr "Mudar para Conteúdo Escrito"
@@ -24140,8 +24158,11 @@ msgstr "Este Trimestre"
msgid "This receipt has no lines. Choose a source document to add them."
msgstr "Este recebimento não possui linhas. Escolha um documento de origem para adicioná-las."
-msgid "This removes the PDF. Employees will see the written content instead."
-msgstr "Isso remove o PDF. Os funcionários verão o conteúdo escrito em vez disso."
+msgid "This removes the PDF. Employees will see the new content instead."
+msgstr ""
+
+msgid "This removes the video. Employees will see the new content instead."
+msgstr ""
msgid "This removes their authenticator app, so their next sign-in only needs a magic link. Use this when they have lost access to their authenticator. It affects their sign-in for every company they belong to."
msgstr "Isso remove seu aplicativo autenticador, portanto seu próximo login só precisa de um link mágico. Use isso quando eles tiverem perdido acesso ao seu autenticador. Afeta seu login para cada empresa a que pertencem."
@@ -24754,6 +24775,9 @@ msgstr "Plano de Treinamento"
msgid "Training taken outside Carbon, such as a vendor course. The assignment has only a name. An admin marks each employee complete and can attach their certificate."
msgstr "Treinamento realizado fora do Carbon, como um curso de um fornecedor. A atribuição tem apenas um nome. Um administrador marca cada funcionário como concluído e pode anexar seu certificado."
+msgid "Training video"
+msgstr ""
+
msgid "Training your team via the Academy and in-app guides"
msgstr "Treinamento da sua equipe via Academy e guias integrados"
@@ -26137,8 +26161,8 @@ msgstr "Quanto cada ativo vale, quanto dura e o que acontece ao final do prazo.
msgid "What each period's payment is for this asset in the first year"
msgstr "O pagamento de cada período para este ativo no primeiro ano"
-msgid "What employees read before the questions"
-msgstr "O que os funcionários leem antes das perguntas"
+msgid "What employees read or watch before the questions"
+msgstr ""
msgid "What happens to an invoice once it is created"
msgstr "O que acontece com uma fatura depois de criada"
@@ -26917,6 +26941,12 @@ msgstr "Sua lista de fornecedores"
msgid "yourself"
msgstr "você mesmo"
+msgid "YouTube link"
+msgstr ""
+
+msgid "YouTube Video"
+msgstr ""
+
msgid "Z1.4 inspection level (I / II / III); higher levels mean larger sample sizes for the same lot."
msgstr "Nível de inspeção Z1.4 (I / II / III); níveis mais altos significam tamanhos de amostra maiores para o mesmo lote."
diff --git a/packages/locale/locales/ru/erp.po b/packages/locale/locales/ru/erp.po
index 7a60c1615e..7c536142e7 100644
--- a/packages/locale/locales/ru/erp.po
+++ b/packages/locale/locales/ru/erp.po
@@ -9153,6 +9153,9 @@ msgstr "Введите полученное количество или отме
msgid "Enter a web address, such as https://example.com"
msgstr "Введите веб-адрес, например https://example.com"
+msgid "Enter a YouTube video link"
+msgstr ""
+
msgid "Enter an item and quantity yourself."
msgstr "Введите номенклатуру и количество самостоятельно."
@@ -15314,6 +15317,9 @@ msgstr "Нет доступных переменных"
msgid "No versions available"
msgstr "Нет доступных версий"
+msgid "No video added"
+msgstr ""
+
msgid "No warehouse stock is on record for this item. You can still pick it — on-hand will go negative until the count is reconciled."
msgstr "На складе нет записей о наличии этого товара. Вы все равно можете его отобрать — остаток на руках станет отрицательным до тех пор, пока инвентаризация не будет согласована."
@@ -16557,6 +16563,9 @@ msgstr "Просрочено"
msgid "Past end date"
msgstr "После даты завершения"
+msgid "Paste a YouTube video link"
+msgstr ""
+
msgid "Paste the metadata XML if your identity provider does not publish a metadata URL"
msgstr "Вставьте XML метаданных, если ваш поставщик удостоверений не публикует URL метаданных"
@@ -18843,6 +18852,9 @@ msgstr "Убрать двухфакторную аутентификацию"
msgid "Remove Unit"
msgstr "Убрать единицу"
+msgid "Remove Video"
+msgstr ""
+
msgid "Removed"
msgstr "Удалено"
@@ -22369,9 +22381,15 @@ msgstr "Переключить модуль"
msgid "Switch to pan mode"
msgstr "Переключиться в режим панорамы"
+msgid "Switch to PDF"
+msgstr ""
+
msgid "Switch to select mode"
msgstr "Переключиться в режим выделения"
+msgid "Switch to Video"
+msgstr ""
+
msgid "Switch to Written Content"
msgstr "Переключиться на письменный контент"
@@ -24140,8 +24158,11 @@ msgstr "Этот квартал"
msgid "This receipt has no lines. Choose a source document to add them."
msgstr "В этом поступлении нет строк. Выберите документ-основание, чтобы добавить их."
-msgid "This removes the PDF. Employees will see the written content instead."
-msgstr "Это удаляет PDF. Сотрудники вместо этого увидят письменный контент."
+msgid "This removes the PDF. Employees will see the new content instead."
+msgstr ""
+
+msgid "This removes the video. Employees will see the new content instead."
+msgstr ""
msgid "This removes their authenticator app, so their next sign-in only needs a magic link. Use this when they have lost access to their authenticator. It affects their sign-in for every company they belong to."
msgstr "Это удаляет их приложение аутентификатора, поэтому их следующий вход требует только волшебной ссылки. Используйте это, когда они потеряли доступ к своему аутентификатору. Это влияет на их вход для каждой организации, которой они принадлежат."
@@ -24754,6 +24775,9 @@ msgstr "План обучения"
msgid "Training taken outside Carbon, such as a vendor course. The assignment has only a name. An admin marks each employee complete and can attach their certificate."
msgstr "Обучение, пройденное вне Carbon, например курс поставщика. Задание содержит только название. Администратор отмечает каждого сотрудника завершённым и может прикрепить его сертификат."
+msgid "Training video"
+msgstr ""
+
msgid "Training your team via the Academy and in-app guides"
msgstr "Обучение вашей команды через Academy и встроенные руководства"
@@ -26137,8 +26161,8 @@ msgstr "Стоимость каждого актива, продолжитель
msgid "What each period's payment is for this asset in the first year"
msgstr "Размер платежа каждого периода для этого актива в первый год"
-msgid "What employees read before the questions"
-msgstr "То, что сотрудники читают перед вопросами"
+msgid "What employees read or watch before the questions"
+msgstr ""
msgid "What happens to an invoice once it is created"
msgstr "Что происходит со счетом-фактурой после его создания"
@@ -26917,6 +26941,12 @@ msgstr "Ваш список поставщиков"
msgid "yourself"
msgstr "себя"
+msgid "YouTube link"
+msgstr ""
+
+msgid "YouTube Video"
+msgstr ""
+
msgid "Z1.4 inspection level (I / II / III); higher levels mean larger sample sizes for the same lot."
msgstr "Z1.4 уровень контроля (I / II / III); более высокие уровни означают больший объем выборки для одной партии."
diff --git a/packages/locale/locales/tr/erp.po b/packages/locale/locales/tr/erp.po
index 856bdb257e..50508ea1fb 100644
--- a/packages/locale/locales/tr/erp.po
+++ b/packages/locale/locales/tr/erp.po
@@ -9153,6 +9153,9 @@ msgstr "En az bir satırda miktarı girin veya bir Adet'i işaretleyin."
msgid "Enter a web address, such as https://example.com"
msgstr "Bir web adresi girin, örneğin https://example.com"
+msgid "Enter a YouTube video link"
+msgstr ""
+
msgid "Enter an item and quantity yourself."
msgstr "Bir stok kartı ve miktar kendiniz girin."
@@ -15314,6 +15317,9 @@ msgstr "Kullanılabilir değişken yok"
msgid "No versions available"
msgstr "Kullanılabilir sürüm yok"
+msgid "No video added"
+msgstr ""
+
msgid "No warehouse stock is on record for this item. You can still pick it — on-hand will go negative until the count is reconciled."
msgstr "Bu ürün için depoda kayıtlı stok bulunmamaktadır. Sayım yeniden düzenlenene kadar eldeki stok negatif olacaktır, ancak yine de alabilirsiniz."
@@ -16557,6 +16563,9 @@ msgstr "Vadesi geçmiş"
msgid "Past end date"
msgstr "Bitiş Tarihinden Sonra"
+msgid "Paste a YouTube video link"
+msgstr ""
+
msgid "Paste the metadata XML if your identity provider does not publish a metadata URL"
msgstr "Kimlik sağlayıcınız bir meta veri URL'si yayınlamıyorsa meta veri XML'sini yapıştırın"
@@ -18843,6 +18852,9 @@ msgstr "İki Faktörlü Kimlik Doğrulamayı Kaldır"
msgid "Remove Unit"
msgstr "Adet'i Kaldır"
+msgid "Remove Video"
+msgstr ""
+
msgid "Removed"
msgstr "Kaldırıldı"
@@ -22369,9 +22381,15 @@ msgstr "Modülü değiştir"
msgid "Switch to pan mode"
msgstr "Pan moduna geç"
+msgid "Switch to PDF"
+msgstr ""
+
msgid "Switch to select mode"
msgstr "Seçim moduna geç"
+msgid "Switch to Video"
+msgstr ""
+
msgid "Switch to Written Content"
msgstr "Yazılı İçeriğe Geç"
@@ -24140,8 +24158,11 @@ msgstr "Bu Çeyrek"
msgid "This receipt has no lines. Choose a source document to add them."
msgstr "Bu girişte satır yok. Bunları eklemek için bir kaynak belge seçin."
-msgid "This removes the PDF. Employees will see the written content instead."
-msgstr "Bu, PDF'yi kaldırır. Çalışanlar yerine yazılı içeriği görecekler."
+msgid "This removes the PDF. Employees will see the new content instead."
+msgstr ""
+
+msgid "This removes the video. Employees will see the new content instead."
+msgstr ""
msgid "This removes their authenticator app, so their next sign-in only needs a magic link. Use this when they have lost access to their authenticator. It affects their sign-in for every company they belong to."
msgstr "Bu işlem onların kimlik doğrulayıcı uygulamasını kaldırır, bu nedenle sonraki oturum açışları yalnızca sihirli bir bağlantı gerektirir. Kimlik doğrulayıcılarına erişimini kaybettikleri zaman bunu kullanın. Ait oldukları her şirket için oturum açışlarını etkiler."
@@ -24754,6 +24775,9 @@ msgstr "Eğitim Planı"
msgid "Training taken outside Carbon, such as a vendor course. The assignment has only a name. An admin marks each employee complete and can attach their certificate."
msgstr "Carbon dışında alınan eğitim, satıcı kursu gibi. Görev sadece bir ada sahiptir. Yönetici her çalışanı tamamlandı olarak işaretler ve sertifikasını ekleyebilir."
+msgid "Training video"
+msgstr ""
+
msgid "Training your team via the Academy and in-app guides"
msgstr "Ekibinizi Academy ve uygulama içi kılavuzlar aracılığıyla eğitin"
@@ -26137,8 +26161,8 @@ msgstr "Her varlığın değeri, ne kadar sürdüğü ve dönem sonunda ona ne o
msgid "What each period's payment is for this asset in the first year"
msgstr "İlk yılda bu varlık için her dönemin ödeme tutarı"
-msgid "What employees read before the questions"
-msgstr "Çalışanların sorulardan önce okuduğu şey"
+msgid "What employees read or watch before the questions"
+msgstr ""
msgid "What happens to an invoice once it is created"
msgstr "Fatura oluşturulduktan sonra ne olur"
@@ -26917,6 +26941,12 @@ msgstr "Satıcı listeniz"
msgid "yourself"
msgstr "kendiniz"
+msgid "YouTube link"
+msgstr ""
+
+msgid "YouTube Video"
+msgstr ""
+
msgid "Z1.4 inspection level (I / II / III); higher levels mean larger sample sizes for the same lot."
msgstr "Z1.4 muayene seviyesi (I / II / III); daha yüksek seviyeler aynı lot için daha büyük örneklem büyüklüğü anlamına gelir."
diff --git a/packages/locale/locales/zh/erp.po b/packages/locale/locales/zh/erp.po
index f491609909..db09611d1a 100644
--- a/packages/locale/locales/zh/erp.po
+++ b/packages/locale/locales/zh/erp.po
@@ -9153,6 +9153,9 @@ msgstr "请在至少一行上输入收货数量或勾选一个件。"
msgid "Enter a web address, such as https://example.com"
msgstr "请输入网址,例如 https://example.com"
+msgid "Enter a YouTube video link"
+msgstr ""
+
msgid "Enter an item and quantity yourself."
msgstr "自己输入物料和数量。"
@@ -15314,6 +15317,9 @@ msgstr "没有可用的变量"
msgid "No versions available"
msgstr "没有可用的版本"
+msgid "No video added"
+msgstr ""
+
msgid "No warehouse stock is on record for this item. You can still pick it — on-hand will go negative until the count is reconciled."
msgstr "此物料的仓库库存无记录。您仍然可以拣货 — 在手库存将变为负数,直到盘点协调。"
@@ -16557,6 +16563,9 @@ msgstr "逾期"
msgid "Past end date"
msgstr "已过截止日期"
+msgid "Paste a YouTube video link"
+msgstr ""
+
msgid "Paste the metadata XML if your identity provider does not publish a metadata URL"
msgstr "如果您的身份提供商未发布元数据 URL,请粘贴元数据 XML"
@@ -18843,6 +18852,9 @@ msgstr "移除双因素认证"
msgid "Remove Unit"
msgstr "移除单位"
+msgid "Remove Video"
+msgstr ""
+
msgid "Removed"
msgstr "已移除"
@@ -22369,9 +22381,15 @@ msgstr "切换模块"
msgid "Switch to pan mode"
msgstr "切换到平移模式"
+msgid "Switch to PDF"
+msgstr ""
+
msgid "Switch to select mode"
msgstr "切换到选择模式"
+msgid "Switch to Video"
+msgstr ""
+
msgid "Switch to Written Content"
msgstr "切换到书面内容"
@@ -24140,8 +24158,11 @@ msgstr "本季度"
msgid "This receipt has no lines. Choose a source document to add them."
msgstr "此收货单没有行。请选择源单据以添加行。"
-msgid "This removes the PDF. Employees will see the written content instead."
-msgstr "这将移除 PDF。员工将改为查看书面内容。"
+msgid "This removes the PDF. Employees will see the new content instead."
+msgstr ""
+
+msgid "This removes the video. Employees will see the new content instead."
+msgstr ""
msgid "This removes their authenticator app, so their next sign-in only needs a magic link. Use this when they have lost access to their authenticator. It affects their sign-in for every company they belong to."
msgstr "此操作移除其身份验证应用,因此其下次登录只需要魔法链接。当他们无法访问其身份验证器时使用此选项。它影响其所属每个公司的登录。"
@@ -24754,6 +24775,9 @@ msgstr "培训计划"
msgid "Training taken outside Carbon, such as a vendor course. The assignment has only a name. An admin marks each employee complete and can attach their certificate."
msgstr "在 Carbon 外进行的培训,例如供应商课程。该作业仅有名称。管理员将每位员工标记为完成,并可附加其证书。"
+msgid "Training video"
+msgstr ""
+
msgid "Training your team via the Academy and in-app guides"
msgstr "通过 Academy 和应用内指南培训班组"
@@ -26137,8 +26161,8 @@ msgstr "每项资产的价值、使用期限以及租期结束时的处理方式
msgid "What each period's payment is for this asset in the first year"
msgstr "第一年内该资产每个期间的付款是多少"
-msgid "What employees read before the questions"
-msgstr "员工答题前阅读的内容"
+msgid "What employees read or watch before the questions"
+msgstr ""
msgid "What happens to an invoice once it is created"
msgstr "发票创建后会发生什么"
@@ -26920,6 +26944,12 @@ msgstr "您的供应商列表"
msgid "yourself"
msgstr "你自己"
+msgid "YouTube link"
+msgstr ""
+
+msgid "YouTube Video"
+msgstr ""
+
msgid "Z1.4 inspection level (I / II / III); higher levels mean larger sample sizes for the same lot."
msgstr "Z1.4检验水平(I / II / III);较高级别意味着同一批次的样本量更大。"