Skip to content

Commit

Permalink
1.0.3 repush
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaeta committed Nov 27, 2020
1 parent 56a7483 commit 81a36ad
Show file tree
Hide file tree
Showing 8 changed files with 86 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
.DS_Store
node_modules
# /dist

# local env files
.env.local
.env.*.local

# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Grace Bot Locales

Why are you even here? Unless you want to help.
3 changes: 3 additions & 0 deletions allowedLangs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[
"en.json"
]
12 changes: 12 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env node
files = require("./allowedLangs.json");
let messages = {website: {}, bot: {}};
for (i = 0; i < files.length; i++) {
file = require(`./langs/${files[i]}`);
if (file.website) messages.website[files[i].split('.')[0]] = file.website;
if (file.bot) messages.bot[files[i].split('.')[0]] = file.bot;
}

exports.website = messages.website;

exports.bot = messages.bot;
Empty file added langs/.gitignore
Empty file.
33 changes: 33 additions & 0 deletions langs/en.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"website": {
"dashboard": {
"selector": {
"afternoon": "Good Afternoon, Please choose a server.",
"morning": "Good Morning, Please choose a server."
},
"sidebar": {
"main": "Main",
"mod": "Moderation",
"log": "Logging",
"level": "Leveling",
"starboard": "Starboard",
"notifications": "Notifications",
"twitch": "Twitch Notification",
"youtube": "Youtube Notification",
"music": "Music",
"musicSettings": "Music Settings",
"queue": "Queue List",
"customActions": "Custom Actions",
"leaderboard": "Leaderboard",
"premium": {
"no": "Buy Premium",
"yes": "Buy Premium Again!"
},
"goBack": "Go Back"
}
}
},
"bot": {
"hello": "Hello World!"
}
}
10 changes: 10 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "locales",
"version": "1.0.3",
"description": "The Grace locales",
"main": "index.js",
"repository": "https://github.com/Dream-cake/Grace-locales.git",
"author": "Spooder",
"license": "MIT",
"dependencies": {}
}
4 changes: 4 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1


0 comments on commit 81a36ad

Please sign in to comment.