TacoTranslate
/
డాక్యుమెంటేషన్ధరలు
 
  1. పరిచయం
  2. ప్రారంభించడం
  3. సెట్టప్ మరియు కాన్ఫిగరేషన్
  4. TacoTranslate ఉపయోగించడం
  5. సర్వర్-సైడ్ రెండరింగ్
  6. అధునాతన వినియోగం
  7. ఉత్తమ పద్ధతులు
  8. లోపాల నిర్వహణ మరియు డీబగ్గింగ్
  9. మద్దతు ఉన్న భాషలు

ప్రారంభించడం

సంస్థాపన

To install TacoTranslate in your application, open your terminal and navigate to the root directory of your project. Then, run the following command to install with npm:

npm install tacotranslate

This assumes you already have an application set up. See examples for more information.

ప్రాథమిక ఉపయోగం

కింది ఉదాహరణ ఒక TacoTranslate క్లయింట్‌ను ఎలా సృష్టించాలో, మీ అప్లికేషన్‌ను TacoTranslate ప్రొవైడర్‌తో ర్యాప్ చేసి, అనువదించిన స్ట్రింగ్‌లను ప్రదర్శించడానికి Translate కంపోనెంట్‌ను ఎలా ఉపయోగించమో చూపిస్తుంది.

import createTacoTranslateClient from 'tacotranslate';
import {TacoTranslate, Translate} from 'tacotranslate/react';

const tacoTranslateClient = createTacoTranslateClient({apiKey: 'YOUR_API_KEY'});

function Page() {
	return <Translate string="Hello, world!" />;
}

export default function App() {
  return (
    <TacoTranslate client={tacoTranslateClient} locale="es">
      <Page />
    </TacoTranslate>
  );
}

ఈ ఉదాహరణ స్పానిష్‌ను ఉపయోగించడానికి సెట్ చేయబడింది (locale="es"), కాబట్టి Translate కంపోనెంట్ "¡Hola, mundo!" ను ప్రదర్శిస్తుంది.

API కీని సృష్టించండి.

ఉదాహరణలు

మా GitHub ఉదాహరణల ఫోల్డర్ను సందర్శించి, మీ వినియోగ సందర్భానికి ప్రత్యేకంగా TacoTranslateను ఎలా సెటప్ చేయాలో మరింత తెలుసుకోండి — ఉదాహరణకు Next.js App Routerతో లేదా Create React Appను ఉపయోగించడం ద్వారా.

మా దగ్గర CodeSandbox కూడా ఏర్పాటుచేశారు, మీరు దీన్ని ఇక్కడ చూడవచ్చు.

సెట్టప్ మరియు కాన్ఫిగరేషన్

ఒక ఉత్పత్తి Nattskiftet నుండినార్వేలో తయారు చేయబడింది