
Security News
Frontier AI Is Now Critical Infrastructure
The Fable shutdown shows how quickly model access can become a business continuity risk for AI-dependent engineering teams.
vitra-web-translator
Advanced tools
A website translation sdk from Vitra.ai

Install with npm
npm install vitra-web-translator
import 'vitra-web-translator/dist/esm/styles/index.css';
import type { AppProps } from 'next/app';
export default function App({ Component, pageProps }: AppProps) {
return (
<>
<Component {...pageProps} />
</>
);
}
import React, { FC, ReactNode } from 'react';
import { VitraWebTranslator } from 'vitra-web-translator';
type Props = {
children: ReactNode,
};
const Layout: FC<Props> = ({ children }) => {
return (
<VitraWebTranslator
apiKey="vitra.VjopflOAtjF9coT7U3_*********_*"
glossaryId="*************"
position="center-right"
theme="dark"
>
{children}
</VitraWebTranslator>
);
};
export default Layout;
import React from 'react';
import Layout from './Layout';
const Demo = () => {
return (
<Layout>
<h1>This is a demo component</h1>
</Layout>
);
};
export default Demo;
| Prop | Type | Required | Description | Possible Values | Default |
|---|---|---|---|---|---|
| apiKey | string | Yes | API Key generated from Vitra Web Translator site | API KEY | null |
| glossaryId | string | Yes | Glossary Id generated from Vitra Web Translator site | GLOSSARY ID | null |
| theme | string | Yes | Theme of the language selector | 'dark' | 'blue' | 'pink' | 'yellow' | dark |
| position | string | Yes | Position of the language selector dropdown if it is floating | 'top-left' | 'top-center' | 'top-right' | 'center-left' | 'center-center' | 'center-right' | 'bottom-left' | 'bottom-center' | 'bottom-right' | 'center-right' |
| floating | boolean | No | Dropdown default floating behaviour | true/false | true |
| dropdownDirection | string | No | Dropdown menu open direction | 'up' | 'down' | 'down' |
If you want to set custom position of the dropdown then please follow below instruction
#vitra-lang-select {
position: absolute !important;
top: 100px !important;
right: 10px !important;
}
@media only screen and (max-width: 600px) {
#vitra-lang-select {
position: absolute !important;
top: 500px !important;
right: 10px !important;
}
}
If you want to block translation for any html block then add notranslate="true" attribute to that html element Example-
<div notranslate="true">TEXT</div>
For support, email support@vitra.ai.
FAQs
Vitra Translation on Fly
We found that vitra-web-translator demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The Fable shutdown shows how quickly model access can become a business continuity risk for AI-dependent engineering teams.

Security News
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.