Skip to main content

ODCheckerTranslationRegister_Default class

under construction

We are still working the API Reference! This page might be incomplete or doesn't contain all details!

Overview

This is a special class that adds type definitions & typescript to the ODCheckerTranslationRegister class. It doesn't add any extra features!

This default class is made for the global variable opendiscord.checkers.translation!

View Source

Properties

Methods


constructor() function api.ODCheckerTranslationRegister_Default

(no description)

View Source


delete() function boolean

Delete the translation for a config checker message/sentence.

View Parameters (2)

View Source


get() function string

Get the translation from a config checker message/sentence

View Parameters (2)

View Source


inherited getAll() function {id:string, translation:string, type:"message"|"other"}[]

Get all translations

View Source


inherited insertTranslationParams() function string

Insert the translation params into the text.

View Parameters (2)
  • text: string string - Parameter Description Lorem Ipsum.
  • translationParams: array string[] - Parameter Description Lorem Ipsum.

View Source


quickTranslate() function any

A shortcut to copy translations from the ODLanguageManager to ODCheckerTranslationRegister

View Parameters (4)

View Source


set() function boolean

Set the translation for a config checker message/sentence. This function also overwrites existing translations!

View Parameters (3)

View Source


Defaults

under construction

We're still working on this part of the documentation!

Examples

under construction

We're still working on this part of the documentation!