From 89009f7781d885b284634f81db0d056118c7ea47 Mon Sep 17 00:00:00 2001 From: coyotte508 Date: Sun, 27 Sep 2026 00:53:48 +0200 Subject: [PATCH] Add Persian viewer and tutorial translations --- scripts/check-locales.mjs | 2 +- scripts/localization.test.mjs | 1 + viewer/scripts/journal-localization-smoke.mjs | 8 +- viewer/scripts/persian-smoke.mjs | 153 +++++ viewer/src/localization/README.md | 4 +- viewer/src/localization/fa.json | 650 ++++++++++++++++++ viewer/src/localization/index.js | 3 + viewer/src/localization/rtl.css | 18 + viewer/src/localization/runtime.js | 1 + 9 files changed, 835 insertions(+), 5 deletions(-) create mode 100644 viewer/scripts/persian-smoke.mjs create mode 100644 viewer/src/localization/fa.json create mode 100644 viewer/src/localization/rtl.css diff --git a/scripts/check-locales.mjs b/scripts/check-locales.mjs index 0a4bfd6..ac6e0e2 100644 --- a/scripts/check-locales.mjs +++ b/scripts/check-locales.mjs @@ -7,7 +7,7 @@ if (!directory) { } const source = JSON.parse(await readFile(join(directory, 'en.json'), 'utf8')); const placeholders = (text) => [...text.matchAll(/\{\w+\}/g)].map((match) => match[0]).sort(); -const locales = ['en', 'de', 'fr', 'pl', 'ro', 'el', 'hi', 'ru', 'da', 'pt-BR', 'ko', 'zh-TW', 'vi', 'it', 'nl']; +const locales = ['en', 'de', 'fr', 'pl', 'ro', 'el', 'hi', 'ru', 'da', 'pt-BR', 'ko', 'zh-TW', 'vi', 'it', 'nl', 'fa']; for (const locale of locales) { const catalog = JSON.parse(await readFile(join(directory, `${locale}.json`), 'utf8')); assert.deepEqual(Object.keys(catalog).sort(), Object.keys(source).sort(), `${locale}: missing or extra strings`); diff --git a/scripts/localization.test.mjs b/scripts/localization.test.mjs index 9d26bd4..2d62e19 100644 --- a/scripts/localization.test.mjs +++ b/scripts/localization.test.mjs @@ -22,6 +22,7 @@ const catalogs = { }; test('regional language preferences select supported catalogues', () => { assert.equal(resolveLocale('nl-BE'), 'nl'); + assert.equal(resolveLocale('fa-IR'), 'fa'); assert.equal(resolveLocale('pt-PT'), 'pt-BR'); assert.equal(resolveLocale('zh-Hant-TW'), 'zh-TW'); assert.equal(resolveLocale('zh-CN'), 'en'); diff --git a/viewer/scripts/journal-localization-smoke.mjs b/viewer/scripts/journal-localization-smoke.mjs index c132df1..d29d53c 100644 --- a/viewer/scripts/journal-localization-smoke.mjs +++ b/viewer/scripts/journal-localization-smoke.mjs @@ -11,7 +11,7 @@ const js = ts.transpileModule(marks.replace(/^import .*$/gm, '') + journal.repla }).outputText; const catalogs = Object.fromEntries( await Promise.all( - ['en', 'fr', 'hi', 'ko', 'nl'].map(async (locale) => [ + ['en', 'fr', 'hi', 'ko', 'nl', 'fa'].map(async (locale) => [ locale, JSON.parse(await readFile(new URL(`localization/${locale}.json`, root), 'utf8')), ]) @@ -37,7 +37,7 @@ try { node.innerHTML = journalPieces(source, true); const l = mountLocalization(node, catalogs, 'fr'); const results = {}; - for (const lang of ['fr', 'hi', 'ko', 'nl', 'en', 'hi']) { + for (const lang of ['fr', 'hi', 'ko', 'nl', 'fa', 'en', 'hi']) { l.setLocale(lang); await new Promise((resolve) => setTimeout(resolve, 10)); results[lang] = { @@ -63,11 +63,13 @@ try { assert.match(result.hi.text, /Build ने Fish से 3 \$ में.*खरीदा; नई कीमत: 5 \$/); assert.match(result.ko.text, /Build: Fish에게서 \$3에.*구매, 새 가격 \$5/); assert.match(result.nl.text, /Build koopt.*van Fish voor \$3; nieuwe prijs: \$5/); + assert.match(result.fa.text, /Build.*Fish.*3.*5/s); + assert.match(result.fa.text, /[\u0600-\u06ff]/); assert.match(result.warehouse.text, /Build achète.*pour 4 \$/); assert.equal(result.warehouse.icons, 1); assert.match(result.seizure.text, /은행이 Build의 공장에서.*압류/); assert.equal(result.seizure.icons, 1); - for (const item of ['fr', 'hi', 'ko', 'nl', 'en'].map((lang) => result[lang])) { + for (const item of ['fr', 'hi', 'ko', 'nl', 'fa', 'en'].map((lang) => result[lang])) { assert.equal(item.icons, 1); assert.deepEqual(item.names, ['Build', 'Fish']); assert.doesNotMatch(item.text, /⟪|\{p\d/); diff --git a/viewer/scripts/persian-smoke.mjs b/viewer/scripts/persian-smoke.mjs new file mode 100644 index 0000000..1d92eac --- /dev/null +++ b/viewer/scripts/persian-smoke.mjs @@ -0,0 +1,153 @@ +import assert from 'node:assert/strict'; +import { readFile } from 'node:fs/promises'; +import { createServer } from 'node:http'; +import { createRequire } from 'node:module'; +import { fileURLToPath } from 'node:url'; +import { chromium } from 'playwright'; +const require = createRequire(import.meta.url); +require('../../engine/node_modules/ts-node').register({ + transpileOnly: true, + compilerOptions: { module: 'CommonJS', moduleResolution: 'Node', target: 'ES2022', importHelpers: false }, +}); +const { lessons } = require('../src/tutorial/lessons'); + +const viewer = new URL('../', import.meta.url); +const files = { + '/bundle.js': fileURLToPath(new URL('dist/container-viewer.umd.min.js', viewer)), + '/bundle.css': fileURLToPath(new URL('dist/container-viewer.css', viewer)), + '/vue.js': require.resolve('vue/dist/vue.min.js'), +}; +const html = + '
'; +const server = createServer(async (req, res) => { + const request = new URL(req.url, 'http://localhost'); + const path = request.pathname; + if (request.searchParams.has('embedded')) { + res.setHeader('content-type', 'text/html'); + res.end( + '' + ); + return; + } + if (files[path]) { + res.setHeader('content-type', path.endsWith('.css') ? 'text/css' : 'text/javascript'); + res.end(await readFile(files[path])); + } else { + res.setHeader('content-type', 'text/html'); + res.end(html); + } +}); +await new Promise((resolve) => server.listen(0, '127.0.0.1', resolve)); +const origin = `http://127.0.0.1:${server.address().port}`; +async function playOnBoard(page, move) { + if (move.name === 'pass') return page.locator('[data-tutorial="turn"]').click(); + if (move.name === 'bid') { + const keys = [7, 8, 9, 4, 5, 6, 1, 2, 3, 0, 'Del', 'Bid']; + for (const digit of String(move.extraData.price)) + await page + .locator('.calculator rect.button') + .nth(keys.indexOf(Number(digit))) + .click(); + await page.locator('.calculator rect.button').last().click(); + if (await page.locator('.modal.visible').isVisible()) + await page.locator('.modal.visible').getByRole('button', { name: 'تأیید', exact: true }).click(); + return; + } + if (move.name === 'accept') return page.locator('g.button').filter({ hasText: 'Accept Ada' }).click(); + if (move.name === 'decline') return page.locator('g.button').filter({ hasText: 'Keep for $6' }).click(); + const id = move.name === 'produce' ? move.extraData.piece.id : move.data?.piece?.id ?? move.extraData?.id; + const pieces = page.locator('.piece.canDrag'); + const index = await pieces.evaluateAll( + (els, { id, sail, factory }) => + els.findLastIndex((el) => + sail + ? el.__vue__.pieceType === 'ship' && el.__vue__.owner === 0 + : factory + ? el.__vue__.pieceType === 'factory' && el.__vue__.color === factory + : el.__vue__.pieceId === id + ), + { id, sail: move.name === 'sail', factory: move.name === 'buyFactory' ? move.data : undefined } + ); + assert.ok(index >= 0, 'piece available for ' + move.name); + await pieces.nth(index).click(); + const zones = page.locator('.placeholder.canClick'); + const type = { + produce: 'factoryStore', + buyFromFactory: 'warehouseStore', + buyFactory: 'factory', + buyWarehouse: 'warehouse', + sail: move.data === 'sea' ? 'openSea' : 'islandHarbor', + }[move.name]; + const zone = await zones.evaluateAll( + (els, { type, price }) => + els.findIndex( + (el) => el.__vue__.data.type === type && (price === undefined || el.__vue__.data.price === price) + ), + { type, price: move.extraData?.price } + ); + assert.ok(zone >= 0, 'destination available for ' + move.name + ' ' + type); + const bounds = await zones.nth(zone).boundingBox(); + await zones.nth(zone).click({ + position: { + x: bounds.width * (type === 'factory' || type === 'warehouse' ? 0.4 : 0.15), + y: bounds.height * 0.4, + }, + }); + if (await page.locator('.modal.visible').isVisible()) + await page.locator('.modal.visible').getByRole('button', { name: 'تأیید', exact: true }).click(); +} + +const browser = await chromium.launch(); +try { + for (const width of [1440, 390]) { + const context = await browser.newContext({ viewport: { width, height: 950 }, reducedMotion: 'reduce' }); + const page = await context.newPage(); + const errors = []; + page.on('pageerror', (error) => errors.push(error.message)); + for (const lesson of lessons) { + await page.goto(`${origin}/?chapter=${lesson.id}`); + const guide = page.locator('.bgs-tutorial-guide'); + await guide.waitFor(); + await page.waitForFunction(() => + /[\u0600-\u06ff]/.test(document.querySelector('.bgs-tutorial-body')?.textContent ?? '') + ); + assert.equal(await guide.evaluate((el) => getComputedStyle(el).direction), 'rtl'); + assert.equal( + await page.locator('.container-tutorial').evaluate((el) => getComputedStyle(el).direction), + 'ltr' + ); + assert.equal(await page.evaluate(() => document.documentElement.scrollWidth > innerWidth + 1), false); + } + const lesson = lessons.find((l) => l.id === 'supply-chain'); + await page.goto(`${origin}/?chapter=${lesson.id}`); + const guide = page.locator('.bgs-tutorial-guide'); + await guide.waitFor(); + let state = lesson.initialState(); + for (let step = 0; step < 24; step++) { + const heading = await guide.locator('.bgs-tutorial-heading strong').innerText(); + if (heading === 'فصل تمام شد') break; + const next = guide.getByRole('button', { name: 'ادامه', exact: true }); + if (await next.isEnabled()) await next.click(); + else { + const stepId = await page.locator('.container-tutorial').getAttribute('data-step'); + const action = lesson.choices(state, stepId)[0]?.action; + assert.ok(action, `action for ${stepId}`); + if (action.kind === 'move') await playOnBoard(page, action.move); + else await page.locator('.tutorial-actions button').first().click(); + state = lesson.move(state, action); + } + await page.waitForFunction( + (previous) => document.querySelector('.bgs-tutorial-heading strong')?.textContent !== previous, + heading + ); + } + assert.equal(await guide.locator('.bgs-tutorial-heading strong').innerText(), 'فصل تمام شد'); + await page.screenshot({ path: `/tmp/container-fa-${width}.png`, fullPage: true }); + assert.deepEqual(errors, []); + await context.close(); + console.log(`Persian chapters and supply-chain actions passed at ${width}px`); + } +} finally { + await browser.close(); + await new Promise((resolve) => server.close(resolve)); +} diff --git a/viewer/src/localization/README.md b/viewer/src/localization/README.md index f10cb70..1f894a3 100644 --- a/viewer/src/localization/README.md +++ b/viewer/src/localization/README.md @@ -1,6 +1,6 @@ # Viewer translations -The viewer follows BGS's shared `preferences.locale` value. Tutorials receive `options.locale`. Supported locales match BGS: English, German, French, Polish, Romanian, Greek, Hindi, Russian, Danish, Brazilian Portuguese, Korean, Traditional Chinese, Vietnamese, Italian and Dutch. +The viewer follows BGS's shared `preferences.locale` value. Tutorials receive `options.locale`. Supported locales match BGS: English, German, French, Polish, Romanian, Greek, Hindi, Russian, Danish, Brazilian Portuguese, Korean, Traditional Chinese, Vietnamese, Italian, Dutch and Persian. `en.json` contains source UI text, including tutorial explanations and engine-generated descriptions rendered by the viewer. The other catalogues use the same keys. `{p0}`, `{p1}`, etc. represent dynamic display values: translators may reorder them but must preserve every placeholder. Add or update the corresponding entries in all catalogues when changing source wording. Component names and terminology need game-specific review; translations were initially machine-assisted. @@ -9,3 +9,5 @@ The rendering adapter translates text and accessible labels, including tooltips, For rich text that is split into icons and spans, call `translateText` on the complete sentence before splitting it; localize the tokenizer's resource labels too. This preserves sentence grammar. Avoid relying on rendered labels to identify an action—use action IDs or data attributes. Run `node scripts/check-locales.mjs viewer/src/localization` to verify catalogue coverage and placeholders. The viewer's normal build and browser tests should also cover language switching, action controls, translated tutorial progression and narrow layouts. Browser text must remain readable if a translation is missing; English is the fallback. + +Persian (`fa`, including `fa-IR`) was authored with game-specific context. Scoped RTL prose leaves the SVG board, coordinates, sale slots and calculator in their original physical order. Player names and chat remain user content; technical extraction keys retain their source spelling. diff --git a/viewer/src/localization/fa.json b/viewer/src/localization/fa.json new file mode 100644 index 0000000..05b18e7 --- /dev/null +++ b/viewer/src/localization/fa.json @@ -0,0 +1,650 @@ +{ + "$10 with all five colours; otherwise $5": "با هر پنج رنگ: ۱۰ دلار؛ در غیر این صورت: ۵ دلار", + "$30 in containers minus the $6 payment.": "۳۰ دلار ارزش کانتینرها منهای پرداخت ۶ دلار.", + "$5 or $10": "۵ یا ۱۰ دلار", + "'s Ship": "؛ کشتی", + "'s bid": "؛ پیشنهاد", + "'s factory": "؛ کارخانه", + "'s harbor": "؛ بندر", + "'s island": "؛ جزیره", + "'s warehouses": "؛ انبارها", + "'s warehouses and a": "؛ انبارها و یک", + "(Bid: $": "(پیشنهاد: $", + "(Score: $": "(امتیاز: $", + "(max-width: 700px)": "(max-width: 700px)", + "(prefers-reduced-motion: reduce)": "(prefers-reduced-motion: reduce)", + ") rotate(": ") rotate(", + "+ sealed": "+ محرمانه", + ", new price is $": "، قیمت جدید: $", + ": $10 each with all five colours on your island; $5 each otherwise. Check before removing your most numerous colour.": ": با داشتن هر پنج رنگ در جزیره، هر کدام ۱۰ دلار؛ در غیر این صورت ۵ دلار. پیش از حذف پرتعدادترین رنگ، این شرط را بررسی کنید.", + ":upkeep:": ":upkeep:", + "A tie: add $2": "تساوی: ۲ دلار اضافه کنید", + "Accept $8 and receive $16": "پذیرفتن ۸ دلار و دریافت ۱۶ دلار", + "Accept Ada · receive $16": "پذیرفتن پیشنهاد آدا · دریافت ۱۶ دلار", + "Ada": "Ada", + "Ada and Leo each choose one secret bid for all three containers. They cannot see the other bid before both are submitted. A bid of $0 is allowed. Watch their bids reveal together.": "آدا و لئو هر کدام یک پیشنهاد محرمانه برای هر سه کانتینر انتخاب می‌کنند. تا هر دو پیشنهاد ثبت نشود، هیچ‌کدام پیشنهاد دیگری را نمی‌بیند. پیشنهاد صفر دلار مجاز است. ببینید چگونه پیشنهادها هم‌زمان آشکار می‌شوند.", + "Ada chooses you. You pay only your total bid of $10; the extra bid is not charged again. Leo pays nothing.": "آدا شما را انتخاب می‌کند. فقط مجموع پیشنهادتان، یعنی ۱۰ دلار، را می‌پردازید؛ مبلغ اضافه دوباره دریافت نمی‌شود. لئو چیزی نمی‌پردازد.", + "Ada is auctioning two white containers and one tan container as a single shipment. Bid for all three, and remember she may keep them instead. You can ignore your value card for now: this chapter teaches bidding. The next chapters explain how containers score.": "آدا دو کانتینر سفید و یک کانتینر بژ را در قالب یک محموله به مزایده می‌گذارد. برای هر سه پیشنهاد بدهید و یادتان باشد که ممکن است خودش آن‌ها را نگه دارد. فعلاً می‌توانید کارت ارزش را نادیده بگیرید؛ این فصل دربارهٔ پیشنهاد دادن است. فصل‌های بعد امتیازدهی کانتینرها را توضیح می‌دهند.", + "Ada offered $8; Leo offered $6. Accept Ada’s highest bid. She pays you $8 and gets all three containers on her island. The bank adds another $8: you receive $16 in total.": "آدا ۸ دلار و لئو ۶ دلار پیشنهاد داده‌اند. بالاترین پیشنهاد، یعنی پیشنهاد آدا، را بپذیرید. او ۸ دلار به شما می‌پردازد و هر سه کانتینر را به جزیره‌اش می‌برد. بانک ۸ دلار دیگر اضافه می‌کند؛ در مجموع ۱۶ دلار می‌گیرید.", + "Ada pays her $6 bid and the bank matches it. How much cash do you receive in total?": "آدا پیشنهاد ۶ دلاری‌اش را می‌پردازد و بانک همان‌قدر اضافه می‌کند. در مجموع چقدر پول می‌گیرید؟", + "Ada sails into your harbour and buys the white container for $4. Loading immediately after sailing into a harbour costs no extra action. A ship holds up to five containers. Watch the white container move from your warehouse onto her ship.": "آدا وارد بندرتان می‌شود و کانتینر سفید را به قیمت ۴ دلار می‌خرد. بارگیری بلافاصله پس از ورود به بندر اقدام اضافه‌ای مصرف نمی‌کند. هر کشتی تا پنج کانتینر جا دارد. انتقال کانتینر سفید از انبارتان به کشتی او را ببینید.", + "Add the $6 bid and the $6 bank subsidy.": "پیشنهاد ۶ دلاری و یارانهٔ ۶ دلاری بانک را جمع کنید.", + "Add white in the same action": "تولید سفید در همین اقدام", + "All five colours are present, so use the higher value on the card.": "هر پنج رنگ حاضرند؛ پس از مقدار بیشتر روی کارت استفاده کنید.", + "ArrowLeft": "ArrowLeft", + "ArrowRight": "ArrowRight", + "At final scoring, remove every container of your most numerous island colour. All containers of that colour score $0, regardless of their card value. If colours tie, remove your $5/10 colour if it is tied; otherwise the game removes the lowest-valued tied colour. Which colour must you remove here?": "در امتیازدهی پایانی، همهٔ کانتینرهای پرتعدادترین رنگ جزیره‌تان را حذف کنید. همهٔ کانتینرهای آن رنگ، فارغ از ارزش روی کارت، صفر دلار امتیاز دارند. اگر چند رنگ مساوی باشند و رنگ ۵/۱۰ دلاری شما بین آن‌ها باشد، همان حذف می‌شود؛ وگرنه کم‌ارزش‌ترین رنگِ مساوی حذف می‌شود. اینجا باید کدام رنگ را حذف کنید؟", + "Auction bid": "پیشنهاد مزایده", + "Auction · entire shipment": "مزایده · کل محموله", + "Back to start": "بازگشت به آغاز", + "Bid": "پیشنهاد", + "Bid, raise and break a tie": "پیشنهاد بدهید، مبلغ را بالا ببرید و تساوی را بشکنید", + "Both actions are spent. In the normal game, Pass in the top-right corner confirms your purchases and prices. Until then, Undo can revise your turn. In a lesson, use the replay control to start this step again.": "هر دو اقدام مصرف شده‌اند. در بازی معمولی، «پایان نوبت» در گوشهٔ بالا راست خریدها و قیمت‌ها را تأیید می‌کند. تا آن زمان می‌توانید با «واگرد» نوبتتان را اصلاح کنید. در آموزش، از اجرای دوباره برای شروع مجدد این گام استفاده کنید.", + "Brown containers": "کانتینرهای قهوه‌ای", + "Buildings": "ساختمان‌ها", + "Buildings are not sale spaces": "ساختمان‌ها جای فروش کالا نیستند", + "Buy": "خرید", + "Buy a second factory for $6": "خرید کارخانهٔ دوم با ۶ دلار", + "Buy for $": "خرید به قیمت $", + "Buy for your warehouse": "خرید برای انبارتان", + "Buy from": "خرید از", + "Buy from {p0}": "خرید از {p0}", + "Buy room for another container": "خرید جا برای یک کانتینر دیگر", + "Buy warehouse · pay $4": "خرید انبار · پرداخت ۴ دلار", + "Buy white factory · pay $6": "خرید کارخانهٔ سفید · پرداخت ۶ دلار", + "Buy white for $2 · sell at $3": "خرید سفید با ۲ دلار · فروش به قیمت ۳ دلار", + "Buy white for $2 · sell at $4": "خرید سفید با ۲ دلار · فروش به قیمت ۴ دلار", + "CONTAINER": "CONTAINER", + "Can't bid more money than you have!": "نمی‌توانید بیشتر از پولی که دارید پیشنهاد بدهید!", + "Cargo instead of cash": "محموله به‌جای پول نقد", + "Cargo sale / purchase": "فروش یا خرید محموله", + "Cash": "پول نقد", + "Chapter complete": "فصل تمام شد", + "Chat": "گفت‌وگو", + "Chat disabled": "گفت‌وگو غیرفعال است", + "Chat is connecting…": "در حال اتصال به گفت‌وگو…", + "Chat is read-only": "گفت‌وگو فقط‌خواندنی است", + "Chat message": "پیام گفت‌وگو", + "Chat will be available when the game starts": "گفت‌وگو پس از شروع بازی در دسترس خواهد بود", + "Chat ·": "گفت‌وگو ·", + "Chat · {p0}": "گفت‌وگو · {p0}", + "Chat · {p0} unread": "گفت‌وگو · {p0} خوانده‌نشده", + "Check all five colours first": "اول وجود هر پنج رنگ را بررسی کنید", + "Choose one of the answers below.": "یکی از پاسخ‌های زیر را انتخاب کنید.", + "Click Ada’s white container in her factory sales, then your warehouse-sales square marked 3. You pay $2 and offer it for $3. You can now keep both the brown and white containers for visiting ships to buy. Buying a warehouse does not produce or include any containers.": "روی کانتینر سفید آدا در بخش فروش کارخانه‌اش کلیک کنید، سپس خانهٔ فروش انبار خودتان با عدد ۳ را انتخاب کنید. ۲ دلار می‌پردازید و آن را به قیمت ۳ دلار عرضه می‌کنید. حالا می‌توانید کانتینر قهوه‌ای و سفید را برای خرید کشتی‌های واردشونده نگه دارید. خرید انبار هیچ کانتینری تولید نمی‌کند و کانتینری هم همراه ندارد.", + "Click Ada’s white container in her factory sales, then your warehouse-sales square marked 4. You pay her $2 and offer it for $4. The house-shaped row holds warehouse buildings. The squares below it hold containers for sale: their numbers are prices, not extra storage spaces. Your one warehouse holds one container.": "روی کانتینر سفید آدا در بخش فروش کارخانه‌اش کلیک کنید، سپس خانهٔ فروش انبار خودتان با عدد ۴ را انتخاب کنید. ۲ دلار به او می‌پردازید و آن را به قیمت ۴ دلار عرضه می‌کنید. ردیف خانه‌شکل جای ساختمان‌های انبار است. مربع‌های زیر آن برای کانتینرهای فروشی هستند؛ اعدادشان قیمت‌اند، نه ظرفیت اضافه. تک‌انبار شما یک کانتینر جا دارد.", + "Click a white container in the supply, then your factory-sales square marked 3. This is still the same production action, with no extra $1 payment. More factories produce more stock; more warehouses let you buy and resell more stock from other players.": "روی یک کانتینر سفید در ذخیره کلیک کنید، سپس خانهٔ فروش کارخانه‌تان با عدد ۳ را انتخاب کنید. این هنوز همان اقدام تولید است و پرداخت ۱ دلار دیگری لازم نیست. کارخانه‌های بیشتر تولید را افزایش می‌دهند؛ انبارهای بیشتر اجازه می‌دهند کالای بیشتری از دیگر بازیکنان بخرید و دوباره بفروشید.", + "Click your blue ship, then the island harbour on the right and confirm the sailing move. Ada and Leo will bid for the entire cargo, just as in the previous auction.": "روی کشتی آبی خود کلیک کنید، سپس بندر جزیره در سمت راست را انتخاب و حرکت را تأیید کنید. آدا و لئو مانند مزایدهٔ قبلی برای کل بار پیشنهاد می‌دهند.", + "Click your blue ship, then the island harbour on the right to start the auction. Confirm the sailing move. An island auction ends your turn even if it was your first action. The seller does not submit a bid.": "روی کشتی آبی خود کلیک کنید، سپس بندر جزیره در سمت راست را انتخاب کنید تا مزایده آغاز شود. حرکت را تأیید کنید. مزایدهٔ جزیره نوبتتان را تمام می‌کند، حتی اگر اقدام اول شما باشد. فروشنده پیشنهاد نمی‌دهد.", + "Click your blue ship, then the open sea in the centre of the board. Moving directly from one harbour to another is not allowed. This uses one of your two actions.": "روی کشتی آبی خود کلیک کنید، سپس دریای آزاد در مرکز صفحه را انتخاب کنید. حرکت مستقیم از یک بندر به بندر دیگر مجاز نیست. این کار یکی از دو اقدام شما را مصرف می‌کند.", + "Complete this step to continue": "برای ادامه این گام را کامل کنید", + "Confirm these two actions": "تأیید این دو اقدام", + "Confirm your account to chat": "برای گفت‌وگو حسابتان را تأیید کنید", + "Container": "Container", + "Container production": "تولید کانتینر", + "Containers for sale": "کانتینرهای فروشی", + "Continue": "ادامه", + "Correct! $30 in containers − $6 paid to the bank = $24 gained.": "درست است! ۳۰ دلار ارزش کانتینرها منهای ۶ دلار پرداخت به بانک، برابر با ۲۴ دلار سود است.", + "Correct! Ada’s $6 + the bank’s $6 = $12 received.": "درست است! ۶ دلار از آدا به‌علاوهٔ ۶ دلار از بانک، برابر با ۱۲ دلار دریافتی است.", + "Correct! All five colours are present, so each orange scores $10.": "درست است! هر پنج رنگ حاضرند؛ پس هر نارنجی ۱۰ دلار امتیاز دارد.", + "Correct! Remove all 3 dark-green containers. All three score $0.": "درست است! هر ۳ کانتینر سبز تیره را حذف کنید. هر سه صفر دلار امتیاز دارند.", + "Dark-green containers": "کانتینرهای سبز تیره", + "Decline does not cancel the auction": "رد پیشنهادها مزایده را لغو نمی‌کند", + "Decline the bids, pay the bank and compare the cost with selling.": "پیشنهادها را رد کنید، به بانک بپردازید و هزینه را با فروش مقایسه کنید.", + "Del": "پاک", + "Discard your most numerous colour, value a full set and count the final money.": "پرتعدادترین رنگ را کنار بگذارید، مجموعهٔ کامل را ارزش‌گذاری کنید و پول نهایی را بشمارید.", + "Distinguish buildings from sale spaces, then expand production and storage.": "ساختمان‌ها را از جای فروش کالا تشخیص دهید، سپس تولید و فضای انبار را گسترش دهید.", + "Domestic sale": "فروش داخلی", + "Done": "تمام", + "Done · score the game": "تمام · محاسبهٔ امتیاز بازی", + "Each player has a private value card. The same colour can be worth different amounts to different players, and you cannot see their cards. These are the final scoring values of island containers, not their buying prices. On your card, white is worth $10 each.": "هر بازیکن یک کارت ارزش محرمانه دارد. یک رنگ یکسان ممکن است برای بازیکنان مختلف ارزش متفاوتی داشته باشد و شما کارت دیگران را نمی‌بینید. این مقادیر، امتیاز پایانی کانتینرهای جزیره‌اند، نه قیمت خریدشان. روی کارت شما هر سفید ۱۰ دلار ارزش دارد.", + "Empty": "خالی", + "End": "پایان", + "FACTORY SALES": "فروش کارخانه", + "Factories and warehouses": "کارخانه‌ها و انبارها", + "Factories produce containers. Other players buy them for their warehouses, then sell them to visiting ships. In this chapter, make a container and earn money from a trade. You cannot buy from your own stores.": "کارخانه‌ها کانتینر تولید می‌کنند. بازیکنان دیگر آن‌ها را برای انبارهایشان می‌خرند و سپس به کشتی‌های واردشونده می‌فروشند. در این فصل یک کانتینر بسازید و از معامله پول به دست آورید. نمی‌توانید از فروشگاه‌های خودتان خرید کنید.", + "Factory": "کارخانه", + "Factory / warehouse": "کارخانه یا انبار", + "Factory Slot": "جای کارخانه", + "Factory Store": "موجودی کارخانه", + "Factory selling price": "قیمت فروش کانتینر در کارخانه", + "Final score": "امتیاز نهایی", + "Final scoring values per island container. Other players have different values and cannot see your card.": "ارزش پایانی هر کانتینر در جزیره. ارزش‌ها برای بازیکنان دیگر متفاوت است و آن‌ها کارت شما را نمی‌بینند.", + "Finish the game and count": "بازی را تمام و امتیاز را حساب کنید", + "Finish your turn": "نوبتتان را تمام کنید", + "Follow the action described in this step, or use Replay step.": "اقدام توضیح‌داده‌شده در این گام را انجام دهید یا گام را دوباره اجرا کنید.", + "From factory to ship": "از کارخانه تا کشتی", + "Game": "بازی", + "Game End!": "پایان بازی!", + "Game Start!": "شروع بازی!", + "Game ended!": "بازی تمام شد!", + "Game sounds": "صدای بازی", + "Get Loan": "گرفتن وام", + "Harbor": "بندر", + "Harbor Store": "موجودی بندر", + "Harbour → open sea": "بندر → دریای آزاد", + "Help off": "راهنما خاموش", + "Help on": "راهنما روشن", + "Hide": "پنهان کردن", + "Hint": "راهنمایی", + "Home": "آغاز", + "Island Harbor": "بندر جزیره", + "It is not your turn!": "نوبت شما نیست!", + "It's a tie, choose your ADDITIONAL bid!": "مساوی شده‌اید؛ مبلغ اضافهٔ پیشنهادی‌تان را انتخاب کنید!", + "It's your turn to bid!": "نوبت پیشنهاد دادن شماست!", + "It's your turn!": "نوبت شماست!", + "Journal": "رویدادها", + "Journal and chat": "رویدادها و گفت‌وگو", + "Keep cargo · pay $6": "نگه داشتن محموله · پرداخت ۶ دلار", + "Keep the cargo yourself": "محموله را برای خودتان نگه دارید", + "Keeping gains $24 of final value. Selling earns $12 cash. In this position, keeping is worth $12 more. Keep the cargo: pay $6 to the bank and add all three containers to your island. You receive no subsidy.": "نگه داشتن محموله ۲۴ دلار به ارزش نهایی شما اضافه می‌کند. فروش آن ۱۲ دلار پول نقد می‌دهد. در این وضعیت، نگه داشتن ۱۲ دلار باارزش‌تر است. محموله را نگه دارید: ۶ دلار به بانک بپردازید و هر سه کانتینر را به جزیره‌تان اضافه کنید. یارانه‌ای دریافت نمی‌کنید.", + "Leo": "Leo", + "Leo also added $2, so both total bids are $10. There is no third bidding round. Ada may accept either tied highest bidder, or pay $10 to the bank and keep the cargo.": "لئو هم ۲ دلار اضافه کرده، پس مجموع هر دو پیشنهاد ۱۰ دلار است. دور سوم پیشنهاد وجود ندارد. آدا می‌تواند یکی از دو پیشنهاد برابرِ برتر را بپذیرد، یا ۱۰ دلار به بانک بپردازد و محموله را نگه دارد.", + "Lesson actions": "اقدام‌های درس", + "Load your ship": "بارگیری کشتی", + "Loan": "وام", + "Loan / repayment": "وام یا بازپرداخت", + "Local chat preview. Messages stay in this browser.": "پیش‌نمایش محلی گفت‌وگو؛ پیام‌ها در همین مرورگر می‌مانند.", + "Log": "رویدادها", + "Make a sealed offer, add a tie-break bid and see who pays.": "پیشنهاد محرمانه بدهید، برای شکستن تساوی مبلغ اضافه کنید و ببینید چه کسی می‌پردازد.", + "Make money by trading": "از دادوستد پول به دست آورید", + "Mention suggestions": "پیشنهاد نام برای اشاره", + "Message…": "پیام…", + "Most numerous colour removed": "پرتعدادترین رنگ حذف شد", + "New event:": "رویداد جدید:", + "New event: {p0}": "رویداد جدید: {p0}", + "New phase:": "مرحلهٔ جدید:", + "New phase: {p0}": "مرحلهٔ جدید: {p0}", + "Next chapter": "فصل بعدی", + "Next chapter:": "فصل بعدی:", + "Next chapter: {p0}": "فصل بعدی: {p0}", + "No": "خیر", + "No actions yet.": "هنوز اقدامی انجام نشده.", + "No messages yet": "هنوز پیامی نیست", + "No {p0} container left in the lesson setup.": "در چیدمان این درس کانتینر {p0} باقی نمانده است.", + "Not quite.": "کاملاً درست نیست.", + "Not quite. {p0}": "کاملاً درست نیست. {p0}", + "Now you are the buyer": "حالا شما خریدار هستید", + "Offer your shipment": "محموله‌تان را عرضه کنید", + "One auction for the whole ship": "یک مزایده برای کل بار کشتی", + "One production action can make one container per factory. Pay $1 for the entire action, even when using several factories. Click an orange container in the supply, then your factory-sales square marked 2.": "در یک اقدام تولید می‌توان به‌ازای هر کارخانه یک کانتینر ساخت. هزینهٔ کل اقدام ۱ دلار است، حتی با چند کارخانه. روی یک کانتینر نارنجی در ذخیره کلیک کنید، سپس خانهٔ فروش کارخانه‌تان با عدد ۲ را انتخاب کنید.", + "Only players can send messages": "فقط بازیکنان می‌توانند پیام بفرستند", + "Open": "باز کردن", + "Open Sea": "دریای آزاد", + "Open sea → island": "دریای آزاد → جزیره", + "Open {p0}": "باز کردن {p0}", + "Orange containers": "کانتینرهای نارنجی", + "Orange is marked $5/10 on your card: each orange scores $10 if your island has all five colours, or $5 otherwise. Then remove every container of your most numerous colour. Keeping this cargo gives you all five colours; your three dark-green containers will be removed and score $0.": "ارزش نارنجی روی کارت شما ۵/۱۰ دلار است: اگر هر پنج رنگ در جزیره‌تان باشند، هر نارنجی ۱۰ دلار و در غیر این صورت ۵ دلار امتیاز دارد. سپس همهٔ کانتینرهای پرتعدادترین رنگ را حذف کنید. با نگه داشتن این محموله هر پنج رنگ را خواهید داشت؛ سه کانتینر سبز تیرهٔ شما حذف می‌شوند و صفر دلار امتیاز دارند.", + "Pass": "پایان نوبت", + "Pass turn": "پایان نوبت", + "Pay $6 to keep it": "برای نگه داشتن آن ۶ دلار بپردازید", + "Pay Loan": "بازپرداخت وام", + "Player": "بازیکن", + "Player {p0}": "بازیکن {p0}", + "PlayerHarbor": "PlayerHarbor", + "PlayerHarbor{p0}": "PlayerHarbor{p0}", + "PlayerHarbor{p0}1": "PlayerHarbor{p0}1", + "PlayerHarbor{p0}2": "PlayerHarbor{p0}2", + "PlayerHarbor{p0}3": "PlayerHarbor{p0}3", + "PlayerHarbor{p0}4": "PlayerHarbor{p0}4", + "Playtest": "آزمایش بازی", + "Playtest tools · sounds": "ابزارهای آزمایش بازی · صداها", + "Previous step": "گام قبلی", + "Produce": "تولید", + "Produce and set a price": "تولید و تعیین قیمت", + "Produce orange · price $2": "تولید نارنجی · قیمت ۲ دلار", + "Produce with both factories": "با هر دو کارخانه تولید کنید", + "Produce, set prices, trade with another player and load a ship.": "تولید کنید، قیمت بگذارید، با بازیکن دیگری معامله کنید و یک کشتی را بار بزنید.", + "Progress cannot be saved in this browser": "ذخیرهٔ پیشرفت در این مرورگر ممکن نیست", + "Replay step": "اجرای دوبارهٔ گام", + "Reveal the additional bids": "آشکار کردن پیشنهادهای اضافه", + "Reveal the bids": "آشکار کردن پیشنهادها", + "Reveal the offers": "آشکار کردن پیشنهادها", + "SUMMARY": "خلاصه", + "Sail and sell your cargo": "حرکت کشتی و فروش محموله", + "Sail to open sea": "حرکت به دریای آزاد", + "Sail to the island": "حرکت به جزیره", + "Saved in this browser": "ذخیره‌شده در این مرورگر", + "Sealed": "محرمانه", + "Secret bids, then a reveal": "پیشنهادهای محرمانه، سپس آشکارسازی", + "Seller": "فروشنده", + "Send": "ارسال", + "Sending…": "در حال ارسال…", + "Ship cargo": "بار کشتی", + "Ship sailing": "حرکت کشتی", + "Show": "نمایش", + "Show area": "نمایش ناحیه", + "Show log": "نمایش رویدادها", + "Sign in to chat": "برای گفت‌وگو وارد شوید", + "Sound off": "صدا خاموش", + "Sound on": "صدا روشن", + "Start an auction, reveal the sealed bids and collect the bank subsidy.": "مزایده را شروع کنید، پیشنهادهای محرمانه را آشکار کنید و یارانهٔ بانک را بگیرید.", + "Still tied? The seller chooses": "هنوز مساوی است؟ فروشنده انتخاب می‌کند", + "Submit a sealed bid of $8": "ثبت پیشنهاد محرمانهٔ ۸ دلار", + "Supply": "ذخیره", + "Tan containers": "کانتینرهای بژ", + "The $5 or $10 bonus, then the discard": "ارزش ۵ یا ۱۰ دلار، سپس حذف رنگ", + "The bank seizes a": "بانک مصادره می‌کند:", + "The bank seizes a factory from": "بانک یک کارخانه مصادره می‌کند از", + "The bank seizes a factory from {p0}": "بانک یک کارخانه از {p0} مصادره می‌کند", + "The bank seizes a warehouse from": "بانک یک انبار مصادره می‌کند از", + "The bank seizes a warehouse from {p0}": "بانک یک انبار از {p0} مصادره می‌کند", + "The bank seizes a {p0} container and a {p1} container from {p2}'s factory": "بانک یک کانتینر {p0} و یک کانتینر {p1} از کارخانهٔ {p2} مصادره می‌کند", + "The bank seizes a {p0} container and a {p1} container from {p2}'s warehouses": "بانک یک کانتینر {p0} و یک کانتینر {p1} از انبارهای {p2} مصادره می‌کند", + "The bank seizes a {p0} container from {p1}'s factory": "بانک یک کانتینر {p0} از کارخانهٔ {p1} مصادره می‌کند", + "The bank seizes a {p0} container from {p1}'s island": "بانک یک کانتینر {p0} از جزیرهٔ {p1} مصادره می‌کند", + "The bank seizes a {p0} container from {p1}'s warehouses": "بانک یک کانتینر {p0} از انبارهای {p1} مصادره می‌کند", + "The bank seizes a {p0} container from {p1}'s warehouses and a {p2} container from {p3}'s factory": "بانک یک کانتینر {p0} از انبارهای {p1} و یک کانتینر {p2} از کارخانهٔ {p3} مصادره می‌کند", + "The circles hold factories; the house shapes hold warehouses. Numbers in empty building slots are purchase costs. The squares BELOW each building row hold containers for sale. Their numbers are your selling prices. They do not tell you how many containers you can store.": "دایره‌ها جای کارخانه‌ها و شکل‌های خانه جای انبارها هستند. اعداد در جایگاه‌های خالی ساختمان، هزینهٔ خریدند. مربع‌های زیر هر ردیف ساختمان، کانتینرهای فروشی را نگه می‌دارند. اعدادشان قیمت فروش شماست، نه تعداد کانتینرهایی که می‌توانید نگه دارید.", + "The last turn": "آخرین نوبت", + "The orange row says $5/10: each orange scores $10 if you have all five colours on your island, or $5 otherwise. Check this before removing any containers. You have all five colours. What is each orange worth?": "ردیف نارنجی ۵/۱۰ دلار نشان می‌دهد: اگر هر پنج رنگ را در جزیره داشته باشید، هر نارنجی ۱۰ دلار و در غیر این صورت ۵ دلار امتیاز دارد. این شرط را پیش از حذف کانتینرها بررسی کنید. هر پنج رنگ را دارید. هر نارنجی چقدر ارزش دارد؟", + "The subsidy rewards shipping": "یارانه پاداش حمل‌ونقل است", + "The three dark-green containers contribute $0. White earns $20, orange $10, tan $6 and brown $4: $40 from the island. Add $20 cash, $2 for your warehouse container and $3 for the container on your ship; subtract $11 for your loan. Factory stock and buildings score nothing. Choose Pass in the top-right corner to see the final result.": "سه کانتینر سبز تیره صفر دلار ارزش دارند. سفید ۲۰ دلار، نارنجی ۱۰ دلار، بژ ۶ دلار و قهوه‌ای ۴ دلار می‌دهد؛ مجموع جزیره ۴۰ دلار است. ۲۰ دلار پول نقد، ۲ دلار برای کانتینر انبار و ۳ دلار برای کانتینر روی کشتی اضافه کنید؛ ۱۱ دلار هم برای وام کم کنید. موجودی کارخانه و ساختمان‌ها امتیازی ندارند. برای دیدن نتیجهٔ نهایی، «پایان نوبت» در گوشهٔ بالا راست را انتخاب کنید.", + "The two white containers are worth $20. The orange is worth $10 because it completes your five-colour set. Keeping adds $30 in containers, but costs $6 paid to the bank. What is the net gain?": "دو کانتینر سفید ۲۰ دلار ارزش دارند. نارنجی ۱۰ دلار ارزش دارد، چون مجموعهٔ پنج‌رنگ شما را کامل می‌کند. نگه داشتن محموله ۳۰ دلار کانتینر اضافه می‌کند، اما ۶ دلار پرداخت به بانک هزینه دارد. سود خالص چقدر است؟", + "Tutorial": "آموزش", + "Tutorial navigation": "پیمایش آموزش", + "Two colours in the supply are empty, so the game ends after this turn. Your island has 3 dark green, 2 white, 1 orange, 1 tan and 1 brown. Each player has a private card with different values for these colours. Your card determines your final score; the prices you paid at auction do not.": "ذخیرهٔ دو رنگ خالی شده؛ پس بازی بعد از این نوبت تمام می‌شود. جزیرهٔ شما ۳ سبز تیره، ۲ سفید، ۱ نارنجی، ۱ بژ و ۱ قهوه‌ای دارد. هر بازیکن کارت محرمانه‌ای با ارزش‌های متفاوت برای این رنگ‌ها دارد. کارت شما امتیاز نهایی‌تان را تعیین می‌کند، نه قیمت‌هایی که در مزایده پرداخته‌اید.", + "Undo": "واگرد", + "Undo last move": "واگرد آخرین حرکت", + "Unknown Container chapter": "فصل ناشناختهٔ Container", + "Unpaid loans": "وام‌های بازپرداخت‌نشده", + "Upkeep": "هزینهٔ نگهداری", + "Use the board’s calculator: press 8, then Bid. Your offer is hidden from Leo until he has also bid. You only pay if Ada ultimately sells the cargo to you. You cannot bid more cash than you hold.": "از ماشین‌حساب روی صفحه استفاده کنید: ۸ را بزنید، سپس «پیشنهاد» را انتخاب کنید. پیشنهادتان تا وقتی لئو هم پیشنهاد نداده، از او پنهان می‌ماند. فقط اگر آدا در نهایت محموله را به شما بفروشد، پول می‌پردازید. نمی‌توانید بیشتر از پول نقدتان پیشنهاد بدهید.", + "Use the new storage space": "از فضای جدید انبار استفاده کنید", + "Viewer mount point not found:": "محل نصب نمایشگر پیدا نشد:", + "Viewer mount point not found: {p0}": "محل نصب نمایشگر پیدا نشد: {p0}", + "WAREHOUSE SALES": "فروش انبار", + "Wait for both sealed bids before deciding what to do with your shipment.": "پیش از تصمیم‌گیری دربارهٔ محموله‌تان، منتظر ثبت هر دو پیشنهاد محرمانه بمانید.", + "Wait for the other bidder": "منتظر پیشنهاددهندهٔ دیگر بمانید", + "Waiting for": "در انتظار", + "Waiting for {p0} to play...": "در انتظار حرکت {p0}…", + "Warehouse": "انبار", + "Warehouse Slot": "جای انبار", + "Warehouse selling price": "قیمت فروش کانتینر در انبار", + "Warehouse stock": "موجودی انبار", + "Watch Ada choose": "انتخاب آدا را ببینید", + "Watch Ada choose your offer": "ببینید چگونه آدا پیشنهاد شما را انتخاب می‌کند", + "Watch Ada load her ship": "بارگیری کشتی آدا را ببینید", + "Watch Ada trade": "معاملهٔ آدا را ببینید", + "Watch the sealed bids": "پیشنهادهای محرمانه را ببینید", + "What actually scores?": "واقعاً چه چیزی امتیاز می‌دهد؟", + "What does keeping add?": "نگه داشتن محموله چقدر اضافه می‌کند؟", + "What does selling earn?": "فروش چقدر پول می‌دهد؟", + "Which entire colour is removed?": "کدام رنگ به‌طور کامل حذف می‌شود؟", + "White containers": "کانتینرهای سفید", + "Wrong argument for the command": "ورودی فرمان نادرست است", + "Wrong argument for the command {p0}": "ورودی فرمان {p0} نادرست است", + "You": "شما", + "You already have three dark-green containers, one tan and one brown on your island. The ship’s white and orange containers would complete your five-colour set. This time, practise buying your own shipment.": "از قبل سه کانتینر سبز تیره، یک بژ و یک قهوه‌ای در جزیره دارید. کانتینرهای سفید و نارنجی کشتی مجموعهٔ پنج‌رنگ شما را کامل می‌کنند. این بار خرید محمولهٔ خودتان را تمرین کنید.", + "You and Leo both offered $8. Only the tied highest bidders bid again. Use the board’s calculator to bid 2 more, then confirm the $10 total. Your new total is $10, not $2. You may add $0, but cannot lower your first bid.": "شما و لئو هر دو ۸ دلار پیشنهاد داده‌اید. فقط دارندگان بالاترین پیشنهادِ مساوی دوباره پیشنهاد می‌دهند. با ماشین‌حساب ۲ دلار دیگر پیشنهاد بدهید، سپس مجموع ۱۰ دلار را تأیید کنید. مبلغ جدید شما ۱۰ دلار است، نه ۲ دلار. می‌توانید صفر دلار اضافه کنید، ولی نمی‌توانید پیشنهاد اولتان را کاهش دهید.", + "You are not allowed to run the command": "اجازهٔ اجرای این فرمان را ندارید", + "You are not allowed to run the command {p0}": "اجازهٔ اجرای فرمان {p0} را ندارید", + "You bought a warehouse, then stock for it. Choose Pass in the top-right corner. Ada and Leo will pass so you can try expanding your factory next.": "یک انبار خریدید، سپس برای آن کالا خریدید. «پایان نوبت» را در گوشهٔ بالا راست انتخاب کنید. آدا و لئو نوبتشان را رد می‌کنند تا بعد بتوانید گسترش کارخانه را امتحان کنید.", + "You expanded both businesses": "هر دو کسب‌وکار را گسترش دادید", + "You finish with $54": "با ۵۴ دلار تمام می‌کنید", + "You have $10 cash and three island containers. Ada received $20 including the subsidy. At the end of the game, every container of your most numerous island colour is removed. For example, with five white containers and four of each other colour, all five white containers are removed and score $0. The next chapters explain the rest of scoring.": "۱۰ دلار پول نقد و سه کانتینر در جزیره دارید. آدا با احتساب یارانه ۲۰ دلار گرفت. در پایان بازی، همهٔ کانتینرهای پرتعدادترین رنگ جزیره حذف می‌شوند. مثلاً با پنج سفید و چهار کانتینر از هر رنگ دیگر، هر پنج سفید حذف می‌شوند و صفر دلار امتیاز دارند. فصل‌های بعد بقیهٔ امتیازدهی را توضیح می‌دهند.", + "You have $14 left and all five colours on your island. Each orange now qualifies for $10. At final scoring, remove all three dark-green containers: they are your most numerous colour and score $0. To keep a shipment, you must be able to pay the highest bid. Loans give you $10, cost $1 interest each turn and deduct $11 each from your final score if unpaid.": "۱۴ دلار باقی مانده و هر پنج رنگ در جزیره‌تان حاضرند. هر نارنجی اکنون ۱۰ دلار ارزش دارد. در امتیازدهی پایانی، هر سه سبز تیره را حذف کنید؛ آن‌ها پرتعدادترین رنگ شما هستند و صفر دلار امتیاز دارند. برای نگه داشتن محموله باید توان پرداخت بالاترین پیشنهاد را داشته باشید. هر وام ۱۰ دلار می‌دهد، در هر نوبت ۱ دلار بهره دارد و اگر بازپرداخت نشود، در پایان ۱۱ دلار از امتیازتان کم می‌کند.", + "You have 3 dark green, 2 white, and 1 of each other colour. Remove the colour with the most containers.": "۳ سبز تیره، ۲ سفید و از هر رنگ دیگر ۱ کانتینر دارید. پرتعدادترین رنگ را حذف کنید.", + "You have two factories and two warehouses, with $7 left. Your factories can make two colours and store four containers in total. Your warehouses hold two containers bought from other players. Building prices and container sale prices are separate.": "دو کارخانه و دو انبار دارید و ۷ دلار باقی مانده است. کارخانه‌هایتان می‌توانند دو رنگ تولید کنند و در مجموع چهار کانتینر نگه دارند. انبارهایتان دو کانتینر خریداری‌شده از دیگران جا می‌دهند. قیمت ساختمان‌ها از قیمت فروش کانتینرها جداست.", + "You now have $36. Ada paid $8, Leo paid nothing, and your empty ship stays at the island. The next player’s turn begins. The bank subsidy goes only to the seller when another player buys the cargo.": "اکنون ۳۶ دلار دارید. آدا ۸ دلار پرداخت، لئو چیزی نپرداخت و کشتی خالی شما در جزیره می‌ماند. نوبت بازیکن بعدی شروع می‌شود. یارانهٔ بانک فقط وقتی به فروشنده می‌رسد که بازیکن دیگری محموله را بخرد.", + "You paid $2 and sold for $4: a $2 trading margin. After the $1 production cost, you have $21. Your orange container is still for sale. Ships must pass through open sea between harbours; reaching the island auctions the entire cargo.": "۲ دلار پرداختید و به قیمت ۴ دلار فروختید؛ حاشیهٔ سود ۲ دلار است. پس از هزینهٔ تولید ۱ دلار، ۲۱ دلار دارید. کانتینر نارنجی شما هنوز برای فروش است. کشتی‌ها باید بین بندرها از دریای آزاد بگذرند؛ رسیدن به جزیره کل محموله را به مزایده می‌گذارد.", + "You win": "شما برنده‌اید", + "You won the cargo, not the game yet": "محموله را بردید؛ بازی هنوز تمام نشده", + "Your": "شما", + "Your $8 is submitted. Watch Leo submit his sealed bid; both first-round offers are then revealed.": "پیشنهاد ۸ دلاری شما ثبت شد. ببینید لئو چگونه پیشنهاد محرمانه‌اش را ثبت می‌کند؛ سپس هر دو پیشنهاد دور اول آشکار می‌شوند.", + "Your buildings and stock": "ساختمان‌ها و موجودی شما", + "Your cash": "پول نقد شما", + "Your cash: $": "پول نقد شما: $", + "Your extra $2 is secret until Leo submits his addition. Watch the second reveal.": "۲ دلار اضافهٔ شما تا وقتی لئو مبلغ اضافه‌اش را ثبت کند محرمانه است. آشکارسازی دوم را ببینید.", + "Your final total": "مجموع نهایی شما", + "Your final total is: $20 + $40 + $2 + $3 − $11 = $54. The highest final total wins. Aim for profitable trade and useful island cargo, while watching which colour will be discarded. The final-score table below shows every component.": "مجموع نهایی شما: ۲۰ + ۴۰ + ۲ + ۳ − ۱۱ = ۵۴ دلار. بیشترین مجموع نهایی برنده است. به‌دنبال معامله‌های سودآور و محموله‌های مفید برای جزیره باشید و حواستان به رنگی که حذف می‌شود باشد. جدول امتیاز پایانی زیر همهٔ اجزا را نشان می‌دهد.", + "Your final total: $": "مجموع نهایی شما: $", + "Your first trade is complete": "اولین معاملهٔ شما کامل شد", + "Your island": "جزیرهٔ شما", + "Your orange factory can produce one orange container. Click an orange container in the supply, then your factory-sales square marked 2. Production costs $1, paid to the player before you, and uses your first action.": "کارخانهٔ نارنجی شما می‌تواند یک کانتینر نارنجی تولید کند. روی یک کانتینر نارنجی در ذخیره کلیک کنید، سپس خانهٔ فروش کارخانه‌تان با عدد ۲ را انتخاب کنید. تولید ۱ دلار هزینه دارد که به بازیکن پیش از شما پرداخت می‌شود و اقدام اولتان را مصرف می‌کند.", + "Your orange factory makes orange containers. Click a white factory in the supply, then your empty circular factory slot to buy it. You may own only one factory of each colour. Each factory also adds two spaces to your factory sales stock.": "کارخانهٔ نارنجی شما کانتینر نارنجی می‌سازد. روی یک کارخانهٔ سفید در ذخیره کلیک کنید، سپس جایگاه دایره‌ای خالی کارخانه‌تان را انتخاب کنید تا آن را بخرید. از هر رنگ فقط یک کارخانه می‌توانید داشته باشید. هر کارخانه دو جایگاه هم به موجودی فروش کارخانه اضافه می‌کند.", + "Your own values, hidden from others": "ارزش‌های مخصوص شما، پنهان از دیگران", + "Your private value card": "کارت ارزش محرمانهٔ شما", + "Your sale prices:": "قیمت‌های فروش شما:", + "Your sale prices: {p0}": "قیمت‌های فروش شما: {p0}", + "Your ship is already loaded at Ada’s harbour. Two white containers and one orange container will be sold together. You are the seller: everyone else bids, then you decide whether to sell or buy the cargo yourself.": "کشتی شما از قبل در بندر آدا بارگیری شده است. دو کانتینر سفید و یک نارنجی با هم فروخته می‌شوند. شما فروشنده هستید: همهٔ دیگران پیشنهاد می‌دهند، سپس تصمیم می‌گیرید محموله را بفروشید یا خودتان بخرید.", + "Your warehouse is full with one brown container. Each warehouse holds one container. Click a warehouse in the supply, then your empty house-shaped building slot to buy it for $4 and increase capacity to two. Buying a building uses one action.": "انبار شما با یک کانتینر قهوه‌ای پر است. هر انبار یک کانتینر جا دارد. روی یک انبار در ذخیره کلیک کنید، سپس جایگاه خالی خانه‌شکل خود را انتخاب کنید تا با ۴ دلار آن را بخرید و ظرفیت را به دو افزایش دهید. خرید ساختمان یک اقدام مصرف می‌کند.", + "[data-thumbnail-omit]": "[data-thumbnail-omit]", + "[data-tutorial]": "[data-tutorial]", + "a warehouse": "یک انبار", + "accept": "پذیرفتن", + "accepts": "می‌پذیرد", + "afterend": "afterend", + "alert": "alert", + "answer": "answer", + "article": "article", + "aside": "aside", + "assert": "assert", + "at the factory": "در کارخانه", + "at the warehouse": "در انبار", + "beforeend": "beforeend", + "bgs-chat-mentions-{p0}": "bgs-chat-mentions-{p0}", + "bid": "پیشنهاد", + "bidding": "پیشنهاد دادن", + "bids": "پیشنهادها", + "bids $": "پیشنهاد می‌دهد: $", + "bids additional $": "اضافه پیشنهاد می‌دهد: $", + "boolean": "boolean", + "brown": "قهوه‌ای", + "build": "ساخت", + "buildings": "ساختمان‌ها", + "business": "کسب‌وکار", + "button": "button", + "buy": "خرید", + "buys a": "می‌خرد:", + "buys a warehouse for $": "یک انبار می‌خرد به قیمت $", + "cargo": "محموله", + "change": "change", + "changes the price of a": "قیمت را تغییر می‌دهد:", + "chapter": "فصل", + "chat": "گفت‌وگو", + "checkbox": "checkbox", + "click": "click", + "combobox": "combobox", + "container": "کانتینر", + "container and a": "کانتینر و یک", + "container back to the supply for $2": "کانتینر را با ۲ دلار به ذخیره پس می‌دهد", + "container for $": "کانتینر به قیمت $", + "container from": "کانتینر از", + "container left in the lesson setup.": "کانتینر در چیدمان درس باقی مانده است.", + "container, price is $": "کانتینر، قیمت: $", + "dark green": "سبز تیره", + "darkslategray": "darkslategray", + "decline": "رد کردن", + "declines all bids": "همهٔ پیشنهادها را رد می‌کند", + "details": "details", + "discard": "کنار گذاشتن", + "discarded": "کنارگذاشته‌شده", + "discarded · $0": "کنارگذاشته‌شده · ۰ دلار", + "div": "div", + "dodgerblue": "dodgerblue", + "dragged": "dragged", + "dragging": "dragging", + "each": "هر کدام", + "edited": "ویرایش‌شده", + "emit": "emit", + "enabled": "enabled", + "entries": "entries", + "event": "event", + "events": "رویدادها", + "factories": "کارخانه‌ها", + "factory": "کارخانه", + "factory container": "کانتینر کارخانه", + "factory container from $": "کانتینر کارخانه از $", + "factory for $": "کارخانه به قیمت $", + "false": "false", + "fill": "fill", + "finish": "پایان", + "focus": "focus", + "for $": "به قیمت $", + "gamelog": "gamelog", + "group": "group", + "height": "height", + "hook:beforeDestroy": "hook:beforeDestroy", + "input": "input", + "input, button": "input, button", + "instant": "instant", + "intro": "intro", + "island": "جزیره", + "journal": "رویدادها", + "label": "label", + "limegreen": "limegreen", + "link": "link", + "list": "list", + "listbox": "listbox", + "loan": "وام", + "lodash": "lodash", + "log": "رویدادها", + "long": "long", + "lostpointercapture": "lostpointercapture", + "lowpass": "lowpass", + "mediumorchid": "mediumorchid", + "mention": "mention", + "money": "پول", + "mouse": "mouse", + "mousedown": "mousedown", + "move": "حرکت", + "moving": "حرکت", + "none": "none", + "numeric": "numeric", + "off": "خاموش", + "on": "روشن", + "option": "option", + "orange": "نارنجی", + "pass": "پایان نوبت", + "passes": "نوبتش را تمام می‌کند", + "path": "path", + "pays a loan": "یک وام را بازپرداخت می‌کند", + "phase": "مرحله", + "piece": "piece", + "placeholder": "placeholder", + "player": "بازیکن", + "playerHarbor0": "playerHarbor0", + "playerHarbor01": "playerHarbor01", + "playerHarbor02": "playerHarbor02", + "playerHarbor03": "playerHarbor03", + "playerHarbor04": "playerHarbor04", + "playerHarbor1": "playerHarbor1", + "playerHarbor11": "playerHarbor11", + "playerHarbor12": "playerHarbor12", + "playerHarbor13": "playerHarbor13", + "playerHarbor14": "playerHarbor14", + "playerHarbor2": "playerHarbor2", + "playerHarbor21": "playerHarbor21", + "playerHarbor22": "playerHarbor22", + "playerHarbor23": "playerHarbor23", + "playerHarbor24": "playerHarbor24", + "playerHarbor3": "playerHarbor3", + "playerHarbor31": "playerHarbor31", + "playerHarbor32": "playerHarbor32", + "playerHarbor33": "playerHarbor33", + "playerHarbor34": "playerHarbor34", + "playerHarbor4": "playerHarbor4", + "playerHarbor41": "playerHarbor41", + "playerHarbor42": "playerHarbor42", + "playerHarbor43": "playerHarbor43", + "playerHarbor44": "playerHarbor44", + "playerHarbor{p0}": "playerHarbor{p0}", + "playerHarbor{p0}1": "playerHarbor{p0}1", + "playerHarbor{p0}2": "playerHarbor{p0}2", + "playerHarbor{p0}3": "playerHarbor{p0}3", + "playerHarbor{p0}4": "playerHarbor{p0}4", + "pointercancel": "pointercancel", + "pointerdown": "pointerdown", + "pointermove": "pointermove", + "pointerup": "pointerup", + "polite": "polite", + "preferences": "ترجیحات", + "produce": "تولید", + "produces a": "تولید می‌کند:", + "raise": "افزایش پیشنهاد", + "red": "قرمز", + "resize": "resize", + "reveal": "آشکارسازی", + "role": "role", + "round": "دور", + "running": "running", + "sail": "حرکت کشتی", + "sails to": "حرکت می‌کند به", + "scoring": "امتیازدهی", + "sea": "دریا", + "secret": "محرمانه", + "section": "section", + "seedrandom": "seedrandom", + "seller": "فروشنده", + "selling": "فروش", + "sells a": "می‌فروشد:", + "set": "set", + "setup": "چیدمان", + "ship": "کشتی", + "sine": "sine", + "small": "small", + "smooth": "smooth", + "sound": "صدا", + "spaces used": "جایگاه پرشده", + "span": "span", + "state": "state", + "status": "status", + "stock": "موجودی", + "stroke": "stroke", + "strong": "strong", + "style": "style", + "summary": "خلاصه", + "supply": "ذخیره", + "svg": "svg", + "system": "system", + "tab": "tab", + "table": "table", + "tablist": "tablist", + "takes a loan": "یک وام می‌گیرد", + "tan": "بژ", + "td": "td", + "text": "text", + "th": "th", + "the island harbor": "بندر جزیره", + "the open sea": "دریای آزاد", + "time": "time", + "to $": "به $", + "to play...": "تا بازی کند…", + "toggle": "toggle", + "tr": "tr", + "trade": "معامله", + "translate(": "translate(", + "translate(104, 150)": "translate(104, 150)", + "translate(104, 60)": "translate(104, 60)", + "translate(13, 25)": "translate(13, 25)", + "translate(144, 200)": "translate(144, 200)", + "translate(152, 150)": "translate(152, 150)", + "translate(152, 60)": "translate(152, 60)", + "translate(20, 200)": "translate(20, 200)", + "translate(200, 150)": "translate(200, 150)", + "translate(200, 23)": "translate(200, 23)", + "translate(206, 200)": "translate(206, 200)", + "translate(56, 150)": "translate(56, 150)", + "translate(56, 60)": "translate(56, 60)", + "translate(7, 104)": "translate(7, 104)", + "translate(8, 150)": "translate(8, 150)", + "translate(8, 60)": "translate(8, 60)", + "translate(82, 200)": "translate(82, 200)", + "translate({p0}, 100)": "translate({p0}, 100)", + "translate({p0}, {p1})": "translate({p0}, {p1})", + "translate({p0}, {p1}) rotate({p2}, 10, 5)": "translate({p0}, {p1}) rotate({p2}, 10, 5)", + "translate({p0}, {p1}) rotate({p2}, 15, 40)": "translate({p0}, {p1}) rotate({p2}, 15, 40)", + "true": "true", + "turn": "نوبت", + "undefined": "undefined", + "underline": "underline", + "unread": "خوانده‌نشده", + "viewport": "viewport", + "vue": "vue", + "warehouse": "انبار", + "warehouse container": "کانتینر انبار", + "warehouse container from $": "کانتینر انبار از $", + "warehouses": "انبارها", + "watch": "watch", + "white": "سفید", + "width": "width", + "wins": "برنده می‌شود", + "with $": "با $", + "yellow": "زرد", + "{p0} accepts {p1}'s bid": "{p0} پیشنهاد {p1} را می‌پذیرد", + "{p0} declines all bids": "{p0} همهٔ پیشنهادها را رد می‌کند", + "{p0} factories": "{p0} کارخانه", + "{p0} factory": "{p0} کارخانه", + "{p0} passes": "{p0} نوبتش را تمام می‌کند", + "{p0} pays a loan": "{p0} یک وام را بازپرداخت می‌کند", + "{p0} sails to {p1}": "{p0} به {p1} حرکت می‌کند", + "{p0} sells a {p1} container back to the supply for $2": "{p0} یک کانتینر {p1} را با ۲ دلار به ذخیره پس می‌فروشد", + "{p0} ship": "کشتی {p0}", + "{p0} takes a loan": "{p0} یک وام می‌گیرد", + "{p0} unread": "{p0} خوانده‌نشده", + "{p0} warehouse": "{p0} انبار", + "{p0} warehouses": "{p0} انبار", + "{p0} wins": "{p0} برنده می‌شود", + "{p0}'s Ship": "کشتی {p0}", + "{p0}'s harbor": "بندر {p0}", + "{p0}/{p1} spaces used": "{p0}/{p1} جایگاه پرشده", + "{p0}: $10 each with all five colours on your island; $5 each otherwise. Check before removing your most numerous colour.": "{p0}: با داشتن هر پنج رنگ در جزیره، هر کدام ۱۰ دلار؛ در غیر این صورت ۵ دلار. این شرط را پیش از حذف پرتعدادترین رنگ بررسی کنید.", + "{p0}:upkeep:{p1}": "{p0}:upkeep:{p1}", + "· Warehouse selling price": "· قیمت فروش کانتینر در انبار", + "· choosing": "· در حال انتخاب", + "· price $": "· قیمت $", + "$10 containers": "کانتینرهای ۱۰ دلاری", + "$2 containers": "کانتینرهای ۲ دلاری", + "$4 containers": "کانتینرهای ۴ دلاری", + "$5/$10 containers": "کانتینرهای ۵/۱۰ دلاری", + "$6 containers": "کانتینرهای ۶ دلاری", + ": receive $": ": دریافت $", + "Accept": "پذیرفتن", + "Accept {p0}": "پذیرفتن {p0}", + "Cancel": "لغو", + "Confirm": "تأیید", + "Confirm total bid of $": "تأیید مجموع پیشنهاد: $", + "Containers in Warehouses ($2 each)": "کانتینرهای انبارها (هر کدام ۲ دلار)", + "Containers on Ship ($3 each)": "کانتینرهای روی کشتی (هر کدام ۳ دلار)", + "Decline all bids: pay $": "رد همهٔ پیشنهادها: پرداخت $", + "Discarded color": "رنگ حذف‌شده", + "End your turn and start an auction?": "نوبتتان تمام و مزایده شروع شود؟", + "FC_{p0}": "FC_{p0}", + "FS": "FS", + "FS{p0}": "FS{p0}", + "FS{p0}money": "FS{p0}money", + "FS{p0}{p1}": "FS{p0}{p1}", + "Final Score": "امتیاز نهایی", + "Keep for $": "نگه داشتن با $", + "Loans (-$11 each)": "وام‌ها (هر کدام منفی ۱۱ دلار)", + "Money": "پول", + "Money: $": "پول: $", + "PHF": "PHF", + "PHF{p0}": "PHF{p0}", + "PHW": "PHW", + "PHW{p0}": "PHW{p0}", + "background-color:": "background-color:", + "background-color: {p0}": "background-color: {p0}", + "bid + matching bank subsidy)": "پیشنهاد + یارانهٔ برابر از بانک)", + "color: green;": "color: green;", + "color: red;": "color: red;", + "modal": "modal", + "to the bank and keep the cargo. No subsidy.": "به بانک بپردازید و محموله را نگه دارید. بدون یارانه.", + "translate(1045, 5)": "translate(1045, 5)", + "translate(140,": "translate(140,", + "translate(140, 580)": "translate(140, 580)", + "translate(140, {p0})": "translate(140, {p0})", + "translate(280, 425)": "translate(280, 425)", + "translate(770, 425)": "translate(770, 425)", + "Money: ${p0}": "پول: {p0} دلار", + "Color-blind mode": "حالت کوررنگی", + "{p0} buys {p1} for ${p2}": "{p0}، {p1} را به قیمت {p2} دلار می‌خرد", + "{p0} buys {p1} from {p2} for ${p3}, new price is ${p4}": "{p0}، {p1} را از {p2} به قیمت {p3} دلار می‌خرد؛ قیمت جدید {p4} دلار است", + "{p0} buys {p1} from {p2} for ${p3}": "{p0}، {p1} را از {p2} به قیمت {p3} دلار می‌خرد", + "{p0} produces {p1}, price is ${p2}": "{p0}، {p1} تولید می‌کند؛ قیمت {p2} دلار است", + "{p0} changes the price of {p1} at the factory from ${p2} to ${p3}": "{p0} قیمت {p1} در کارخانه را از {p2} به {p3} دلار تغییر می‌دهد", + "{p0} changes the price of {p1} at the warehouse from ${p2} to ${p3}": "{p0} قیمت {p1} در انبار را از {p2} به {p3} دلار تغییر می‌دهد", + "{p0} sells {p1} back to the supply for $2": "{p0}، {p1} را با ۲ دلار به ذخیره پس می‌فروشد", + "{p0} bids ${p1}": "{p0} مبلغ {p1} دلار پیشنهاد می‌دهد", + "{p0} bids additional ${p1}": "{p0} مبلغ {p1} دلار دیگر پیشنهاد می‌دهد", + "Your ship": "کشتی شما", + "{p0}'s ship": "کشتی {p0}", + "The bank seizes {p0} and {p1} from {p2}'s factory": "بانک {p0} و {p1} را از کارخانهٔ {p2} مصادره می‌کند", + "The bank seizes {p0} and {p1} from {p2}'s warehouses": "بانک {p0} و {p1} را از انبارهای {p2} مصادره می‌کند", + "The bank seizes {p0} from {p1}'s factory": "بانک {p0} را از کارخانهٔ {p1} مصادره می‌کند", + "The bank seizes {p0} from {p1}'s island": "بانک {p0} را از جزیرهٔ {p1} مصادره می‌کند", + "The bank seizes {p0} from {p1}'s warehouses": "بانک {p0} را از انبارهای {p1} مصادره می‌کند", + "The bank seizes {p0} from {p1}'s warehouses and {p2} from {p3}'s factory": "بانک {p0} را از انبارهای {p1} و {p2} را از کارخانهٔ {p3} مصادره می‌کند", + "The bank seizes {p0} from {p1}": "بانک {p0} را از {p1} مصادره می‌کند", + "brown container": "کانتینر قهوه‌ای", + "orange container": "کانتینر نارنجی", + "tan container": "کانتینر بژ", + "white container": "کانتینر سفید", + "dark green container": "کانتینر سبز تیره", + "brown factory": "کارخانهٔ قهوه‌ای", + "orange factory": "کارخانهٔ نارنجی", + "tan factory": "کارخانهٔ بژ", + "white factory": "کارخانهٔ سفید", + "dark green factory": "کارخانهٔ سبز تیره" +} diff --git a/viewer/src/localization/index.js b/viewer/src/localization/index.js index 780264b..6610edd 100644 --- a/viewer/src/localization/index.js +++ b/viewer/src/localization/index.js @@ -2,6 +2,7 @@ import catalog8 from './da.json'; import catalog1 from './de.json'; import catalog5 from './el.json'; import catalog0 from './en.json'; +import persian from './fa.json'; import catalog2 from './fr.json'; import catalog6 from './hi.json'; import catalog13 from './it.json'; @@ -10,6 +11,7 @@ import catalog14 from './nl.json'; import catalog3 from './pl.json'; import catalog9 from './pt-BR.json'; import catalog4 from './ro.json'; +import './rtl.css'; import catalog7 from './ru.json'; import { createTranslator, mountLocalization as mount } from './runtime.js'; import catalog12 from './vi.json'; @@ -17,6 +19,7 @@ import catalog11 from './zh-TW.json'; export { languages, resolveLocale } from './runtime.js'; export const catalogs = { en: catalog0, + fa: persian, de: catalog1, fr: catalog2, pl: catalog3, diff --git a/viewer/src/localization/rtl.css b/viewer/src/localization/rtl.css new file mode 100644 index 0000000..e338373 --- /dev/null +++ b/viewer/src/localization/rtl.css @@ -0,0 +1,18 @@ +/* Keep the physical board and calculator order while reading prose right to left. */ +#game:lang(fa), +.container-tutorial:lang(fa), +svg:lang(fa) { + direction: ltr; +} +.modal-content:lang(fa), +.journal-and-chat:lang(fa), +.bgs-tutorial-guide:lang(fa), +.tutorial-answers:lang(fa), +.tutorial-summary:lang(fa) { + direction: rtl; + text-align: start; +} +[data-localized-journal]:lang(fa), +.bgs-tutorial-body p:lang(fa) { + unicode-bidi: plaintext; +} diff --git a/viewer/src/localization/runtime.js b/viewer/src/localization/runtime.js index 9e5c8bc..1a72844 100644 --- a/viewer/src/localization/runtime.js +++ b/viewer/src/localization/runtime.js @@ -14,6 +14,7 @@ export const languages = { vi: 'Tiếng Việt', it: 'Italiano', nl: 'Nederlands', + fa: 'فارسی', }; export function resolveLocale(value) {