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

@quenty/clienttranslator

Package Overview
Dependencies
Maintainers
1
Versions
290
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@quenty/clienttranslator

Gets local translator for player

  • 4.4.1-canary.238.f89c386.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
478
increased by150.26%
Maintainers
1
Weekly downloads
 
Created
Source

ClientTranslator

Documentation status Discord Build and release status

Gets local translator for player

Installation

npm install @quenty/clienttranslator --save

Usage

Usage is designed to be simple.

Adding localization files

Add files to ReplicatedStorage/i18n. Files will be in string values, and be valid JSON. This allows lookup like this:

{
  "key": {
    "secondary": {
      "node": "My translated value"
    }
  }
}

This will generate an entry like this:

"key.secondary.node" --> My translated value

Which can be output like this:

ClientTranslator:FormatByKey("key.secondary.node") --> My translated value

All substitutions and other formats work like Roblox's does.

Pseudo-localize

There exists a pseudo-locale qlp-pls which can be to visualize pseudo-localized text. This can be used to help detect unlocalized text.

API surface

ClientTranslatorFacade:Init()

Initializes a new instance of the ClientTranslatorFacade.

ClientTranslatorFacade:FormatByKey(key, ...)

Works the same way that Roblox's ClientTranslator:FormatByKey functions. However, functions when not online, and also will utilize a pseudo-locale.

Keywords

FAQs

Package last updated on 30 Dec 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