Localization support

This commit is contained in:
tacheometry committed 2023-12-14 02:44:49 +02:00
1 parent 20695e74a9
commit fde20cad6c
12 files changed
+220 -34

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
{
"autocomplete": {
"trackName": "{{title}} [Author: {{author}}]"
},
"commands": {
"lyrics": {
"metadata": {
"description": "Search Genius lyrics for current or specified track. TEST",
"name": "lyrics",
"options": {
"query": {
"name": "query",
"description": "Search query by text or URL. TEST"
}
}
},
"autocompleteSearchResult": "{{title}} [Artist: {{artist}}]"
},
"help": {}
}
}
+8
View File
@@ -0,0 +1,8 @@
import Resources from './resources';
declare module 'i18next' {
interface CustomTypeOptions {
defaultNS: 'bot';
resources: Resources;
}
}
+25
View File
@@ -0,0 +1,25 @@
interface Resources {
"bot": {
"autocomplete": {
"trackName": "{{title}} [Author: {{author}}]"
},
"commands": {
"lyrics": {
"metadata": {
"description": "Search Genius lyrics for current or specified track. TEST",
"name": "lyrics",
"options": {
"query": {
"name": "query",
"description": "Search query by text or URL. TEST"
}
}
},
"autocompleteSearchResult": "{{title}} [Artist: {{artist}}]"
},
"help": {}
}
}
}
export default Resources;