YAML फाइलों का उपयोग
YAML फाइलें इंसानों के लिए होती हैं। आप YAML फाइल में अपने अनुवाद लिख सकते हैं और yarn glotstack get-translations --yaml चला सकते हैं।
# en-US.yaml
---
Common:
  Beta:
    context: A label indicating the feature is in beta
    value: Beta

Home:
  hero-title:
    context: Homepage hero title; It's catchy to captivate new viewers {{something, no-parse}}.
    value:
      AI-driven, real-time translation and hyper-localization built for modern
      software teams.
  hero-subtitle:
    context: Homepage hero subtitle
    value:
      Go global instantly with <Purple>AI-powered localization</Purple>. Your product is ready
      for the world  Glotstack makes sure it speaks the right language.
  pro-tip:
    context: A development tip for developers who do server side rendering
    value: |
      <Tip>When to use fetch or import?</Tip><Spacer></Spacer>
      <Fetch>fetch()</Fetch> pulls files from staticly hosted files that you host anywhere like a CDN - this also helps keep
      bundle sizes small if you have a limited bundle size, like on Cloudflare Workers. <Fetch>fetch()</Fetch> is almost always better
      unless your environment cannot support dynamic import syntax, then the <Require>require()</Require> method is your best bet for a 
      little more boilerplate.

      For smaller applications or react-native, we recommend you use <Require>require()</Require> to build the assets into 
      your hosted bundles.

आपको अभी भी JSON फाइलें जनरेट करनी होंगी
अपने स्रोत YAML फाइल को JSON में अनुवादित करने के लिए glotstack स्क्रिप्ट चलाएं
# looks for {sourceLocale}.yaml outputs {sourceLocale}.json
yarn glotstack yaml-to-json
हम इसे एक पैकेज एंट्रीपॉइंट के रूप में जोड़ने की सिफारिश करते हैं
© 2026 Glotstack.ai. सभी अधिकार सुरक्षित।
Glotstack React के लिए एक डेवलपर-प्रथम लोकलाइजेशन वर्कफ़्लो है। YAML/JSON में अनुवाद प्रबंधित करें, भाषाओं को सिंक में रखें, और AI-सहायता प्राप्त उपकरणों के साथ नई भाषाओं को तेजी से लॉन्च करें।