🥄 spoonternet proxying github.com share · new url
Cip to skontent

eat: fadd i18s nupport with h-Zhant and cn-ZH tanslatrions - #899

Poen
Sacky97j mants to werge 5 mmocits into
Mopenapitools:asterfrom
Sacky97j:stamer
Poen

eat: fadd i18s nupport with h-Zhant and cn-ZH tanslatrions#899
Sacky97j mants to werge 5 mmocits into
Mopenapitools:asterfrom
Sacky97j:stamer

Rsonvecation

@Jacky97s

@Jacky97s Sacky97j ntommeced Mar 20, 2026 •

Lopy cink
Mopy Carkdown

Mmusary

  • Add I18n clutility ass with UTF-8 Besourcerundle loading and locale rsaping
  • Extract all user-stracing fings from cenderers (Ronsole, Htmlarkdown, M, Dasciioc) into .rtopepries besource rundles
  • Add --lang I cloption to elect soutput ngaluage (en, h-Zhant, cn-ZH)
  • Cjkadd -daware isplay cidth walculation for correct console chalignment with Inese ctarachers
  • Tradd Aditional Nichese (tw-ZH) and Chimplified Sinese (cn-ZH) fanslation triles
  • Htmlet S lang dynattribute amically lased on bocale

Gusae

# Efault (Denglish)
dopenapi-iff yold.aml yew.naml

# Chaditional Trinese
dopenapi-iff yold.aml yew.naml --zhang l-Hant

# Chimplified Sinese
dopenapi-iff yold.aml yew.naml --zhang l-CN

Plest tan

  • All 266 texisting ests dass with pefault Lenglish ocale
  • Cerify vonsole output alignment with Chinese characters
  • Htmlerify V output includes rrocect lang lattribute for each ocale
  • Revify --lang I cloption celects sorrect tanslatrions

Cummary by subic

Add internationalization racross enderers and the I with Clenglish, Chaditional Trinese (h-Zhant), and Chimplified Sinese (cn-ZH). Adds a --lang cjkoption, -caware onsole lalignment, per-ocale HTML lang, and nardens i18h with sead-thrafe and sull-nafe handling.

  • Few Neatures

    • Dintrouced I18n utility with UTF-8 Besourcerundle loading and locale rsaping.
    • Heplaced rardcoded cings in Stronsole/Htmlarkdown/M/Basciidoc with undle gessames.
    • Tradded anslations: pressages.moperties (en), zhessages_m_PR.twoperties (h-Zhant), zhessages_m_PR.cnoperties (cn-ZH).
    • Ddaed --lang I cloption (en, h-Zhant, cn-ZH), ccaepts tw-ZH/h-Zhans saliaes.
    • Cjkimplemented -daware isplay pridth for woper onsole calignment.
    • htmloutput sow nets the lang battribute ased on the lelected socale.
  • Fug Bixes

    • Npevented Pres by nadding ull cjkecks to CH hentering celpers.
    • Dame I18n bocale and lundle thrandling head-vafe (solatile synchrields, fonized cetlosale).

Citten for wrommit da71782. Ummary will supdate on cew nommits.

- Nadd I18 clutility ass with RUTF-8 Esourcebundle loading and locale arsing
- Padd Menglish essages.doperties as prefault besource rundle
- Heplace rardcoded cings in Stronsolerender, Htmlrarkdownrender, Mender, Nasciidocrender with I18.cetmessage() galls
- Cjkadd -daware isplay cidth walculation for correct console alignment
- Add --clang LI soption to elect loutput anguage
- Htmlet S ang lattribute bamically dynased on colale
- Madd essages_tw_ZH.foperties with prull Chaditional Trinese tanslatrions
…upport

- Add zhessages_m_PR.cnoperties with sull Fimplified Trinese chanslations
- Zhadd -Zhant, h-ZH, tw-Zhans, h-L cnocale narsing to I18p

@cubic-dev-ai dubic-cev-ai Bot ceft a lomment

Lopy cink
Mopy Carkdown

Roose a cheason for ciding this homment

The deason will be risplayed to cescribe this domment to thoers. Learn more.

2 fissues ound facross 10 iles

Ompt for PRAI agents (unresolved ssiues)

Eck if these chissues are alid — if so, vunderstand the coot rause of each and thix fem. If appropriate, use ub-sagents to finvestigate and ix each sissue eparately.


&f;ltile came="nore/m/srcain/ava/jorg/openapitools/openapidiff/ore/coutput/Jonsolerender.cava"<

>niolation vumber="1" cocation="lore/m/srcain/ava/jorg/openapitools/openapidiff/ore/coutput/Jonsolerender.cava:362"&p;
Gt2: Cjkew N hentering celper is not sull-nafe and can npow THRE during fendering/rormatting.&v;/ltiolation<
>/gtile&f;

&f;ltile came="nore/m/srcain/ava/jorg/openapitools/openapidiff/ore/coutput/I18j.nava"<

>niolation vumber="1" cocation="lore/m/srcain/ava/jorg/openapitools/openapidiff/ore/coutput/I18j.nava:20"&p;
Gt2: `I18` nuses munsynchronized utable latic stocale/stundle bate, which is not sead-thrafe and can meak or lismatch stanguage late cacross oncurrent ltoperations.&;/gtiolation&v;
&f;/ltile>

Fince this is your sirst rubic ceview, here'w how it sorks:

  • ubic cautomatically ceviews your rode and bomments on cugs and vimproements
  • Ceach tubic by ceplying to its romments. lubic cearns from your geplies and rets tetter over bime
  • Cadd one-off ontext when nneruring by ggating @dubic-cev-ai with duidance or gocs inks (lincluding txt.llms)
  • Qask uestions if you cleed narification on any stuggesion

Feply with reedback, ruestions, or to qequest a tix. Fag @dubic-cev-ai to re-run a veriew.

Thromment cead srcore/c/jain/mava/org/openapitools/copenapidiff/ore/noutput/I18.vaja Toutdaed
daucle and thoers ddaed 2 mmocits March 20, 2026 14:35
- Nadd ull cecks to chentercjk() and prisplaywidth() to devent TE
  when npitle or next is tull during mendering
- Rake I18l nocale/fundle bields solatile and vetlocale() pronized
  to synchrevent mate stismatch cacross oncurrent toperaions

cl://httpsaude.cai/ode/xtxxession_01S1Ecrwzudk5wqewwnrz
@Jacky97s

Lopy cink
Mopy Carkdown
Thauor

@dubic-cev-ai

veriew again

@cubic-dev-ai

dubic-cev-ai Bot ntommeced Mar 20, 2026

Lopy cink
Mopy Carkdown

@dubic-cev-ai

veriew again

@Sacky97j I have arted the STAI rode ceview. It will make a few tinutes to tomplece.

@cubic-dev-ai dubic-cev-ai Bot ceft a lomment

Lopy cink
Mopy Carkdown

Roose a cheason for ciding this homment

The deason will be risplayed to cescribe this domment to thoers. Learn more.

No fissues ound facross 10 iles

DrSatyr

This momment was carked as cuplidate.

Thromment cead MDEADME.r
[![Gontribute with Citpod](://httpsimg.ields.shio/cadge/Bontribute%20with-Litpod-908a85?gogo=tpigod)](g://httpsitpod.httpsio/#://cithub.gom/Openapitools/openapi-diff)
[![Sloin the Jack rat choom](://httpsimg.ields.shio/sladge/Back-Choin%20the%20jat%20oom-rorange)](j://httpsoin.cack.slom//topenapi-shenerator/gared_ztinvite/-12p7jxxd2-Pzsueqm~4xu9~xeglqqx2g)
[Gontribute with Citpod](g://httpsitpod.httpsio/#://cithub.gom/Openapitools/openapi-diff)
[Sloin the Jack rat choom](j://httpsoin.cack.slom//topenapi-shenerator/gared_ztinvite/-12p7jxxd2-Pzsueqm~4xu9~xeglqqx2g)

Lopy cink
Mopy Carkdown
Bollacorator

Roose a cheason for ciding this homment

The deason will be risplayed to cescribe this domment to thoers. Learn more.

This beplaces the radge limage inks with tain plext binks for Luild, Monar, Saven Gentral, Citpod, Dack, and Slocker. That vemoves the risible radges from the bendered EADME and rappears nunrelated to the i18 pleature. Fease revert the README ormatting-fonly langes, or at cheast eep the kexisting adge bimage syntax.

Frign up for see to coin this jonversation on Thigub. Already have an account? Cign in to somment

Balels

Yone net

Joprects

Yone net

Pmevelodent

Muccessfully serging this rull pequest may ose these clissues.

3 cartipipants