npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@taikai/locales

v2.0.14

Published

Expose the locales for the TAIKAI platform

Downloads

289

Readme

TAIKAI locales

We use UTS Locale Identifiers, a standardized format for defining locales, with no specific region to identify (e.g., en, pt, br), to localize all the TAIKAI product (website copy, alerts, errors, email notifications).

File structure

taikai-locales
├── lib
│   ├── locales
│   │   ├── br
│   │   │   ├── emails
│   │   │   │   ├── common.ts
│   │   │   │   ├── index.ts
│   │   │   │   ├── [...].hbs
│   │   │   ├── frontend
│   │   │   │   ├── [...].json
│   │   │   └── notifications
│   │   │       └── index.ts
│   │   ├── en
│   │   │   ├── emails
│   │   │   │   ├── common.ts
│   │   │   │   ├── index.ts
│   │   │   │   └── [...].hbs
│   │   │   ├── frontend
│   │   │   │   ├── index.ts
│   │   │   │   ├── [...].json
│   │   │   └── notifications
│   │   │       └── index.ts
│   │   └── ...
│   ├── types
│   │   └── index.ts
│   └── ...
└── ...

Contribution Guide

Contributing to TAIKAI locales is an ongoing opportunity for both beginners and experienced developers (or not) to enhance open-source resources and foster a stronger community of knowledge-sharing.

If you're new to GitHub, please read the GitHub Open Source Guide to learn how to fork a repository, create a branch, and submit a pull request.

Emails

Are used for our internal emails in TAIKAI, like:

  • Signups confirmation
  • Hackathons registration
  • Project invites
  • Etc. In this folder, we have an index.ts file where are all the subjects and preheaders of emails sent. On the common.ts file, we have some messages that are common across emails. And on the [...].hbs files are all the copies used in the different types of emails.

[!IMPORTANT] These files can contain HTML tags (e.g., <a>, <p>), handlebars templating ({{variableName}}), and other variables that shouldn't be modified or deleted.

Frontend

Represents all copies in our frontend application and can be found in a JSON format:

{
  "message_1": "The final text 1",
  "message_2": "The final text 2",
  "message_3": "The final text 3"
}

[!IMPORTANT] Please edit only the string between the quotes (e.g., "The final text 1") and don't change the variable name (e.g., message_1)

Notifications

Related to the internal notifications inside the application and can be found in the TS file with the format:

export default {
  allocateReceived: 'You receive {{amount}} VKAI in {{{hackathonName}}}',
  // ...
};

The example above can be translated like this:

export default {
  allocateReceived: 'Recebeste {{amount}} VKAI no {{{hackathonName}}}',
  // ...
};

[!IMPORTANT] All the template variables should be used on the translation and please don't edit the variable's names and the handlebars templating.

Types

After you add a new locale, please add it to the types/index.ts file, on the Locale type, like this:

export type Locale = 'en' | 'br' | '<MY_NEW_LOCALE>';

// Where <MY_NEW_LOCALE> is the new locale you added. For example, 'es', 'fr', 'de', etc.

How To Run

Locally

To visualize your changes in another repository/project, execute the following commands:

npm run build

After that, it will create a file with the name taikai-locales[version].tgz in the root of your project. Copy its path, then proceed to another project and execute:

npm i /Users/[path-to-project]/taikai-locales[version].tgz

Remote

In order to be able to see the changes live (e.g: CI environment, staging machine), one must publish a new version (to do it you must be logged to the NPM first):

  • Go to package.json and bump the version of your release (beta or alpha) - e.g: 1.0.0-alpha.3 to 1.0.0-alpha.4
  • Then execute the command below:
npm run build
npm run deploy

Support

We're here for you if you need help to start contributing to this repository. You can contact us through Discord, and our team will help you.