Skip to content

Commit

Permalink
Run in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
pontusab committed Feb 7, 2025
1 parent aa38dbd commit 7145005
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions apps/web/src/jobs/translate/translate-locale.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {
import { schemaTask } from "@trigger.dev/sdk/v3";
import { z } from "zod";
import { calculateChunkSize } from "../utils/chunk";
import { chooseModel } from "../utils/model";
import { translateDocument, translateKeys } from "../utils/translate";

interface TranslationResult {
Expand Down Expand Up @@ -49,7 +48,6 @@ export const translateLocaleTask = schemaTask({
},
run: async (payload, { ctx }) => {
const translations: TranslationResult[] = [];
const model = chooseModel(ctx.attempt.number);

const chunkSize = calculateChunkSize(payload.content, {
sourceLocale: payload.sourceLanguage,
Expand Down
4 changes: 2 additions & 2 deletions apps/web/src/messages/sv.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@
"account": "Konto"
},
"hero": {
"title": "Lokalisering infrastruktur skapad för snabbrörliga startups.",
"title": "Lokaliserings-infrastruktur skapad för snabbrörliga startups.",
"description": "Languine automatiserar lokalisering inom din utvecklararbetsflöde och pipeline, vilket säkerställer att översättningar aldrig sätter stopp."
},
"getStarted": {
"heading": "Kom igång",
"title": "Lokalisering infrastruktur skapad för snabbrörliga startups.",
"title": "Lokaliserings-infrastruktur skapad för snabbrörliga startups.",
"description": "Languine automatiserar lokalisering inom din utvecklararbetsflöde och pipeline, vilket säkerställer att översättningar aldrig sätter stopp.",
"button": {
"startAutomating": "Börja automatisera",
Expand Down

0 comments on commit 7145005

Please sign in to comment.