Skip to main content
Glama
translated_path_url.md1.89 kB
--- createdAt: 2025-05-20 updatedAt: 2025-06-29 title: क्या मैं URL पथ का अनुवाद कर सकता हूँ? description: जानें कि URL पथ का अनुवाद कैसे करें। keywords: - array - content - declaration - intlayer - middleware - proxy - rewrite - prefix - locale - url slugs: - frequent-questions - translated-path-url --- # क्या URL का निम्नलिखित रूप में अनुवाद संभव है: ```bash en -> /product (कोई उपसर्ग नहीं) या /en/product (उपसर्ग के साथ) fr -> /fr/produit es -> /es/producto ``` दुर्भाग्यवश Intlayer निर्दिष्ट URL का अनुवाद करने की अनुमति नहीं देता है। इसे प्राप्त करने के लिए, आपको अपने स्वयं के मिडलवेयर या प्रॉक्सी का उपयोग करके URL को पुनःलिखित (rewrite) करना होगा। लेकिन आप `getMultilingualUrl` फ़ंक्शन का उपयोग करके किसी दिए गए लोकल के लिए URL में उपसर्ग डाल सकते हैं। ```ts import { getMultilingualUrl, Locales } from "intlayer"; const url = getMultilingualUrl("/product"); /** * en -> /product (कोई उपसर्ग नहीं) या /en/product (उपसर्ग के साथ) * fr -> /fr/product * es -> /es/product */ console.log(url); ``` या `getLocalizedUrl` ```ts import { getLocalizedUrl, Locales } from "intlayer"; const url = getLocalizedUrl("/product", Locales.FRENCH); console.log(url); // /fr/product ```

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/aymericzip/intlayer'

If you have feedback or need assistance with the MCP directory API, please join our Discord server