OnlineFreeTools.org
  • Home
  • Image editing tools
    • Add Text Watermark to Photo — Local Browser Tool
    • Extract Colors from Image — Palette & Click Pick
    • Flip Image — Mirror Horizontally or Vertically
    • Add Border to Image — Color & Width Online
    • Image Compressor — Resize, Quality & Target Size Local
    • Crop & Resize Image — Local Aspect Presets
    • Photo EXIF Viewer & Remover — GPS, Camera & Local Strip
    • Image Format Converter — PNG JPEG WebP AVIF BMP GIF ICO SVG
    • Convert Image to Grayscale — Black & White Online
    • Merge Images — Combine Photos into One Collage
    • Image Optimizer — WebP, AVIF & MozJPEG Local
    • Overlay Images — Put a Logo on a Photo
    • Image to Base64 Converter — Encode & Decode Locally
    • Images to GIF — Make an Animated GIF Locally
    • Images to PDF — Combine Photos into One File
    • Images to PowerPoint — Photos to PPTX Slides
    • Images to Word — Build a DOCX from Photos
    • PDF Page to Image Sizes — Multi-Size Export Pack
    • PDF to JPG — Convert Pages to Images in Your Browser
  • Design tools
    • Generate Brand Color Scale — 50–950 Palette & CSS Tokens
    • Brand Style Guide — Generate a Modular Draft You Can Edit
    • Smart Website Color Scheme — Semantic CSS Tokens
    • WCAG Contrast Checker — AA/AAA Ratio Online
  • PDF tools
    • Compress PDF — Shrink File Size in Your Browser
    • Crop PDF — Trim Page Margins in Your Browser
    • Merge PDF — Combine Files in Your Browser
    • Organize PDF — Reorder or Remove Pages in Your Browser
    • Add Page Numbers to PDF — In Your Browser
    • PDF to Markdown — Extract Text for Notes in Your Browser
    • PDF Watermark — Stamp Text on Every Page in Your Browser
    • Protect PDF — Password-Encrypt in Your Browser
    • Rotate PDF — Fix Page Orientation in Your Browser
    • Split PDF — Extract Pages Locally
    • Unlock PDF — Remove Password You Already Know
  • Developer
    • Add WWW to DNS — A/CNAME, Apex Rules & Provider Guides
    • Archive Extractor Online — Open Compressed Files in Your Browser
    • Base64 Encode & Decode — Convert Text in Your Browser
    • Core Web Vitals Checker
    • CSV ↔ JSON Converter — Types, Delimiters & Local
    • Domain Lookup — Check DNS Records & Registration Online
    • File Hash Checker — Verify Digests in Your Browser
    • Hreflang Generator
    • HTML Entity Encoder & Decoder — Escape, Unescape & Local
    • IndexNow — Bing URL Submit, Key Check & Status Codes
    • What Is My IP Address — See Your Public IP (IPv4 or IPv6)
    • JSON Schema Validator — Draft-07 Paths & Local
    • JWT Decoder — Read Header & Payload Locally (No Verify)
    • Magnet Link Decoder — Parse Info Hash and Trackers Locally
    • Markdown ↔ HTML
    • Google SERP Preview
    • Meta Tag Generator
    • On-Page SEO Checker
    • Open Graph Preview
    • Random Password Generator — Create Passwords Locally
    • Robots.txt Generator
    • JSON-LD Schema Generator
    • XML Sitemap Generator
    • Compare Two Texts Online — Text Diff Checker
    • Time Zone Converter — Compare One Moment Worldwide
    • Unix Timestamp Converter — Epoch ↔ Readable Time
    • Unzip File Online — Extract ZIP Files in Your Browser
    • UTM Builder
    • UUID & ULID Generator — Create IDs in Your Browser
    • Check HTTP Response Headers
    • YAML ↔ JSON Converter — Types, Multi-doc & Local
  • Calculators
    • Acceleration Calculator — Change in Velocity
    • Age Calculator — Chronological Age from Birthdate
    • Aspect Ratio Calculator — How to Calculate and Scale Ratios
    • BMI Calculator — How to Calculate Body Mass Index
    • BMR & TDEE Calculator — How to Calculate Daily Calories
    • Body Fat Calculator — How to Estimate Body Fat Percentage
    • Break-Even Calculator — How to Calculate Break-Even Point
    • CAGR Calculator — How to Calculate Compound Annual Growth Rate
    • Circle Calculator — Area and Circumference
    • Compound Interest Calculator — How to Calculate Future Value
    • Concrete Calculator — How to Estimate Concrete Volume
    • Confidence Interval Calculator — How to Calculate a CI
    • Contribution Margin Calculator — Price Minus Variable Cost
    • Date Difference Calculator — Days and Weeks
    • Debt Payoff Calculator — Months to Clear a Balance
    • Density Calculator — Mass over Volume
    • Discount Calculator — How to Calculate Sale Price
    • EMI Calculator — How to Calculate Loan Payments
    • Exponent Calculator — How to Calculate Powers
    • GPA Calculator — How to Calculate Weighted GPA
    • Gradient Calculator — Multivariable ∇f (Partial Derivatives)
    • Gross Margin Calculator — How to Calculate Gross Margin
    • Heart Rate Zone Calculator
    • Ideal Weight Calculator — How to Estimate Ideal Body Weight
    • Inflation Calculator — Future Purchasing Power
    • IRR Calculator — Internal Rate of Return
    • Logarithm Calculator — How to Calculate Logs
    • Macro Calculator — Calories to Protein Carb Fat Grams
    • How to Calculate Marginal Revenue — MR Calculator (ΔTR / ΔQ)
    • Markup Calculator — How to Calculate Markup Percentage
    • Mean Calculator — Average of a Number List
    • Median and Mode Calculator
    • How to Calculate NPV — Net Present Value Calculator
    • Ohm’s Law Calculator — Resistance and Power
    • One-Rep Max Calculator (Epley)
    • P-Value Calculator — How to Calculate a P-Value
    • Pace Calculator — min/km and Speed
    • Paint Calculator — How to Estimate Paint Needed
    • Payback Period Calculator — Years to Recover Investment
    • Percentage Change Calculator — From Old Value to New
    • Permutation and Combination Calculator
    • Present Value Calculator — PV and FV Modes
    • Profit Margin Calculator — Net or Operating Margin
    • Pythagorean Theorem Calculator — How to Find a Missing Side
    • Quadratic Equation Solver — Roots and Discriminant
    • ROI Calculator — How to Calculate Return on Investment
    • Rule of 72 Calculator — Years to Double
    • Salary to Hourly Calculator — How to Convert Pay Rates
    • Sample Size Calculator — How to Estimate Required n
    • Scientific Notation Calculator — How to Convert Scientific Notation
    • Significant Figures Calculator — How to Count and Round Sig Figs
    • Slope Calculator — How to Calculate Slope Between Two Points
    • Standard Deviation Calculator — How to Calculate SD and Variance
    • Tile Calculator — How to Estimate Tile Quantity
    • Tip Calculator — Tip Amount and Split
    • Triangle Area Calculator
    • VAT / GST Calculator — Add or Extract Tax
    • Velocity Calculator — Distance over Time
    • Volume Calculator — Box and Sphere
    • Z-Score Calculator — How to Calculate a Standard Score
    • Square Feet to Square Meters — Area Converter for Homes & Renovation
    • Unit Converter — Length / Mass / Temperature / Area / Volume / Speed
  • where2use
  • Tool types
  • Dev Logs

Navigation

Home

Added all tool_yaml_json_* keys to zh/es/pt with independent locale rewrites and varied FAQ order. | Dev Logs

Back to Logs

Date: 2026-08-06 21:03 Summary: Added all tool_yaml_json_* keys to zh/es/pt with independent locale rewrites and varied FAQ order.

[question] You are localizing the new yaml-json tool for the onlinefreetools repo at /Users/xuli/vscodeai/onlinefreetools.

TASK: Add ALL tool_yaml_json_* keys to these locale files by editing them in place:

  • src/site/i18n/zh.ts
  • src/site/i18n/es.ts
  • src/site/i18n/pt.ts

RULES (critical — tool-i18n-localization.mdc):

  • Do NOT translate English sentence-by-sentence into isomorphic skeletons.
  • Rewrite independently for each language using the locale brief below.
  • FAQ question ORDER and How/Rules openings should DIFFER across languages (not same q1/q2 topics in identical order as English if possible — at least vary openings and use-case cut-ins).
  • Description MUST be ≥120 characters AND include at least one keyword from validate-tool-seo for that language:
    • zh: 计算|过程|步骤|示例|例子|公式
    • es: calcula|calcular|proceso|pasos|ejemplo|fórmula
    • pt: calcular|processo|exemplo|fórmula|passos
  • Keep technical tokens: YAML, JSON, js-yaml, Kubernetes, CDN, --- as appropriate.
  • Sample YAML/JSON can keep structure; localize demo words where natural (zh: 名称/开关; es/pt: nombre/nome).
  • Place keys near other tool blocks (after markdown keys is fine) AND FAQ keys near other FAQ blocks before closing };.
  • Use the SAME key names as English (list below). Every key must exist.

KEY NAMES (must all be present): tool_yaml_json_title, tool_yaml_json_description, tool_yaml_json_article, tool_yaml_json_dir_label, tool_yaml_json_tab_yaml_json, tool_yaml_json_tab_json_yaml, tool_yaml_json_convert, tool_yaml_json_copy_json, tool_yaml_json_copy_yaml, tool_yaml_json_copy_done, tool_yaml_json_download_json, tool_yaml_json_download_yaml, tool_yaml_json_sample, tool_yaml_json_clear, tool_yaml_json_json_safe, tool_yaml_json_indent_label, tool_yaml_json_indent_2, tool_yaml_json_indent_4, tool_yaml_json_indent_minify, tool_yaml_json_yaml_input_label, tool_yaml_json_json_output_label, tool_yaml_json_json_input_label, tool_yaml_json_yaml_output_label, tool_yaml_json_yaml_placeholder, tool_yaml_json_json_placeholder, tool_yaml_json_sample_yaml, tool_yaml_json_sample_json, tool_yaml_json_large_warn, tool_yaml_json_need_lib, tool_yaml_json_empty, tool_yaml_json_how_title, tool_yaml_json_how_body, tool_yaml_json_rules_title, tool_yaml_json_rules_body, tool_yaml_json_rules_item_1, tool_yaml_json_rules_item_2, tool_yaml_json_rules_item_3, tool_yaml_json_rules_item_4, tool_yaml_json_example_title, tool_yaml_json_example, tool_yaml_json_usecases_title, tool_yaml_json_usecase_1, tool_yaml_json_usecase_2, tool_yaml_json_usecase_3, tool_yaml_json_faq_q1..q5, tool_yaml_json_faq_a1..a5

LOCALE BRIEFS:

zh

  • 检索词:YAML 转 JSON;JSON 转 YAML;YAML JSON 互转;在线 YAML 转换;K8s YAML 转 JSON
  • 语气:口语工具站
  • Title 方向:YAML ↔ JSON 互转 — 类型规则、多文档、本地处理
  • 按钮:转换;复制 JSON/YAML;下载;清空;安全类型;缩进
  • 额外:勿写「完全无损」;FAQ 可先问隐私或多文档,不要完全照抄英 FAQ 顺序
  • 禁词:无 granularity 类

es

  • 检索词:yaml a json;json a yaml;convertir yaml;conversor yaml json
  • Title:YAML a JSON (y al revés) — tipos, multi-doc, local
  • 按钮:Convertir;Copiar;Descargar;Limpiar;Tipos seguros JSON
  • 勿用 altas y bajas

pt

  • 检索词:yaml para json;json para yaml;converter yaml
  • Title:De YAML para JSON — e JSON de volta a YAML
  • 按钮:Converter;Copiar;Baixar;Limpar;Tipos seguros JSON

CONTENT FACTS to encode (any order/phrasing):

  • Bidirectional on one page; js-yaml; paste local; CDN loads library only
  • DEFAULT schema: bare yes/no may become boolean; JSON-safe keeps strings
  • Multi-doc --- → loadAll; 1 doc = value; 2+ = JSON array
  • Round-trip loses comments; anchors expand
  • Soft limit ~200k warning
  • Use cases: K8s multi-resource; API JSON→YAML edit; AI/data pipeline bridge
  • Example with name/demo style + flag: yes boundary

ENGLISH REFERENCE (rewrite, do not clone structure): Title: YAML ↔ JSON Converter — Types, Multi-doc & Local Description mentions Steps + Example + local paste + multi-doc array

After editing, verify each file still exports default and has no syntax errors (balanced quotes). Prefer single-quoted strings with \n for newlines in samples.

Return: confirmation of which keys were added per file + any FAQ order choices you made.

[try to solve] Wrote all 54 tool_yaml_json_* keys into zh / es / pt (parse checks: 0 missing keys; description ≥120 with SEO keywords; export default intact).

FAQ topic order (vs en types → multi-doc → privacy → round-trip → line numbers):

  • zh: privacy → multi-doc → yes/no types → what round-trip loses → error line numbers
  • es: multi-doc → local in browser → yes/no → comment round-trip → row/column
  • pt: round-trip loss → yes/no → multi-doc --- → privacy → row/column

How / scenario cut-ins also differ: zh How “pick direction first” + scenarios open on K8s; es How “Pegá…pestaña” + scenarios open on API JSON→YAML; pt How “Na mesma página” + scenarios open on pipelines.

[actions]

  • src/site/i18n/zh.ts — added all tool_yaml_json_* (tool block after markdown; FAQ after markdown FAQ)
  • src/site/i18n/es.ts — same (block between markdown FAQ and BMI, including FAQ)
  • src/site/i18n/pt.ts — same
  • Node import checks: 54/54 keys, descLen/kw, banned-word scan
OnlineFreeTools.org · Learning project · Iterating
About·Privacy·Terms·Contact·GitHub