Localization refactoring:
* the front-end now use global constants, based on the translation key * build-client.js use the ESBuild "define" directive to replace these globals at compile time, by the english value * build:client must now be called after build:languages * moving the loadLoc and loc backend functions in a separate lib
This commit is contained in:
29
client/@types/global.d.ts
vendored
29
client/@types/global.d.ts
vendored
@ -1,2 +1,31 @@
|
||||
declare const PLUGIN_CHAT_PACKAGE_NAME: string
|
||||
declare const PLUGIN_CHAT_SHORT_NAME: string
|
||||
|
||||
// Constants that begins with "LOC_" are loaded by build-client.js, reading the english locale file.
|
||||
// See the online documentation: https://johnxlivingston.github.io/peertube-plugin-livechat/contributing/translate/
|
||||
declare const LOC_OPEN_CHAT: string
|
||||
declare const LOC_OPEN_CHAT_NEW_WINDOW: string
|
||||
declare const LOC_CLOSE_CHAT: string
|
||||
declare const LOC_USE_CHAT: string
|
||||
declare const LOC_USE_CHAT_HELP: string
|
||||
declare const LOC_SHARE_CHAT_LINK: string
|
||||
declare const LOC_READ_ONLY: string
|
||||
declare const LOC_SHOW_SCROLLBARR: string
|
||||
declare const LOC_TRANSPARENT_BACKGROUND: string
|
||||
declare const LOC_TIPS_FOR_STREAMERS: string
|
||||
declare const LOC_COPY: string
|
||||
declare const LOC_LINK_COPIED: string
|
||||
declare const LOC_ERROR: string
|
||||
declare const LOC_OPEN: string
|
||||
declare const LOC_USE_CURRENT_THEME_COLOR: string
|
||||
declare const LOC_GENERATE_IFRAME: string
|
||||
declare const LOC_CHAT_FOR_LIVE_STREAM: string
|
||||
declare const LOC_ROOM_NAME: string
|
||||
declare const LOC_ROOM_DESCRIPTION: string
|
||||
declare const LOC_NOT_FOUND: string
|
||||
declare const LOC_VIDEO: string
|
||||
declare const LOC_CHANNEL: string
|
||||
declare const LOC_LAST_ACTIVITY: string
|
||||
declare const LOC_WEB: string
|
||||
declare const LOC_CONNECT_USING_XMPP: string
|
||||
declare const LOC_CONNECT_USING_XMPP_HELP: string
|
||||
|
Reference in New Issue
Block a user