This is the source code for ceciliabot.github.io
Vue 3+
Vue Router
Vuex
Vue i18n 9+
Vue Multiselect (currently only used by the gear score calculator)
Floating UI Dom
js-combinatorics (for camping simulator)
Using Vue-cli
To add a new page add a new route to the src/router/index.js
file.
You can use this.$localePicker()
anywhere in a component to open the language selector (Provided by the language.js
plugin)
To add a new language create a new folder in the src/locales/
folder and give that folder a unique language code (example 'it-IT' or 'it' for Italian)
Inside the new folder create a info.json
file and add the following data:
{
"langCodes": [
"it-*", // When to automatically apply this language pack, in this case 'it-*' will applay to all browsers that have 'it' as language no matter the region
'it-IT' // You can also provide a region
],
"code": "it", // Your code, the code you used as folder name
"name": "Italiano", // Name of your language
"authors": ['Gio', 'Some other helper'], // List of authors
"flag": "https://someimage.png" // Link to your flag
}
During the build process if a folder is missing the info.json
file that language will be skipped.
Your result should look like this: src/locales/<langcode>/info.json
(where
You can translate a changelog by creating a file named <lang-code>.json
(where
- Split HeroDatabase.json and Camping Data into 2 different files
- Rewrite Camping simulator using Vue 3 and multiple components
- Rewrite Timeline adding a Spreadsheet style view, release stats and stats by year
- (Maybe) Split translation async get function by route/component to avoid getting strings for a route not in use (way later in the future maybe)
npm install
npm run serve
npm run build
npm run lint