            package={'private':True,'dependencies':{'intl-messageformat':'12.1.4'}};jout('package.json',package);jout('translations.json',output['translations'])
            renderer="""import fs from 'node:fs';import path from 'node:path';import{pathToFileURL}from'node:url';const root=process.env.BATCH100O_NODE_MODULES||path.resolve('node_modules');const{IntlMessageFormat}=await import(pathToFileURL(path.join(root,'intl-messageformat/index.js')).href);const messages=JSON.parse(fs.readFileSync('translations.json','utf8'));const rows=[];for(const locale of['en','zh'])for(const n of[0,1,2]){const f=new IntlMessageFormat(messages[locale],locale);rows.push({locale,count:n,text:f.format({count:n})})}console.log(JSON.stringify(rows));"""
            (folder/'render-icu.mjs').write_text(renderer);artifacts.append('render-icu.mjs');proc=subprocess.run(['node','render-icu.mjs'],cwd=folder,text=True,capture_output=True,timeout=30,check=True);rows=json.loads(proc.stdout);jout('rendered-messages.json',rows)
            en={r['count']:r['text'] for r in rows if r['locale']=='en'};zh={r['count']:r['text'] for r in rows if r['locale']=='zh'}
            check('英文one与other实际编译渲染',en[1]=='Your cart has 1 item' and en[0]=='Your cart has 0 items' and en[2]=='Your cart has 2 items');check('中文0/1/2均正确插值',all(str(n) in zh[n] and '#' not in zh[n] and '商品' in zh[n] for n in [0,1,2]));result={'runtime':'intl-messageformat 12.1.4','rendered':rows}
