Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

inlang

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

inlang

Internationalize your app in under 3 minutes.

  • 0.0.1-alpha.2
  • unpublished
  • npm
  • Socket score

Version published
Weekly downloads
46
decreased by-26.98%
Maintainers
1
Weekly downloads
 
Created
Source

inlang (COPY OF GITHUB README)

Inlang makes i18n for your web apps as easy as:

  1. installing the package

    NPM npm install inlang **YARN** yarn add inlang

  2. await loadTranslations(<your project domain>,<locale>)

  3. use the provided t(<text>) function

  4. (auto generate translations via the inlang dashboard)

import { loadTranslations, setTranslations, t } from 'inlang'

setTranslations(await loadTranslations('<your domain>', "de"))

console.log(t("How is the weather in Berlin?"))

>>> "Wie ist das Wetter in Berlin?"

Documentation

Head over to app.inlang.dev, create a project and follow the steps above.

For better UX and SEO, the translations should be prefetched via SSR (Server Side Rendering). You can find an in depth documentation for the following frameworks:

  • SvelteKit
  • NextJS
  • React (TODO)
  • VueJS (TODO)
  • missing a framework? Open an issue :)

Keywords

FAQs

Package last updated on 14 Aug 2021

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc