Skip to content

just-a-paw/language

Repository files navigation

Paw Bot i18n

Patreon Discord Pipeline Crowdin

Introduction

These are the language configurations used by Paw Bot.
Paw Bot natively localises depending on what language Discord is set to, and can be manually configured to your preference (paw language).

Contributing

If you would like to contribute and help translate Paw Bot, please read Contributing.

As a Node.js Library

This repository contains utilities for Node.js.
Add as a dependancy or git submodule, importing data provides all locales as an object.

Note

It is recommended to transform each locale object into a string hashmap in production.
Consuming the data/API as-is is only intended for development or modules that transform it for production.

import { ['en-GB']: en_GB } from './language/data'

console.log(en_GB.commands.globals.music.emptyqueue) // The queue is empty.
import * as locale from './language/data'

console.log(Object.keys(locale)) // [ 'en-GB', 'es-ES', 'fr', 'sv-SE' ]