padloc/packages/locale
Bruno Bernardino 50ae105b45
A few improvements, requested from the review:
- File reading is now happening later in the process;
- File reading now reuses methods from `core/attachment`;
- Errors thrown in the import now include an error message;
- Adds prettier command to "prettify" all files;
- Adds prettier command to check for files not conforming to prettier's config;
- Makes CI run the prettier:check command;
- Changes `export const method = () => {};` to `export function method() {}` in the `1pux-parser` file;
- Other minor consistency changes/fixes/improvements;
- Actually ran prettier on every file, and it had a lot of things to tweak.
2021-12-20 15:01:25 +00:00
..
res A few improvements, requested from the review: 2021-12-20 15:01:25 +00:00
src A few improvements, requested from the review: 2021-12-20 15:01:25 +00:00
README.md Add readme to locale package 2019-12-05 15:25:51 +01:00
package-lock.json Fix build issues by updating dependencies and regenerating lock files 2021-12-16 10:33:05 +01:00
package.json A few improvements, requested from the review: 2021-12-20 15:01:25 +00:00
tsconfig.json A few improvements, requested from the review: 2021-12-20 15:01:25 +00:00

README.md

Padloc Localization Package

This package contains translations, word lists and various localization tools for the Padloc app.

How To Contribute

Translations

One of the easiest ways to contribute to this project is to help create or improve translations in your language. Translations are stored as simple JSON files in the following format:

[
    [
        "Hello World", // Original text in English
        "Hallo Welt" // Translation
    ],
    [
        "{0} times {1} makes {2}", // Original text with placeholders
        "{0} mal {1} ergibt {2}" // Translation with placeholders
    ]
]

To add or update a translation for a given text, simply locate the translation file for your language in the translations directory, find the text you want to translate and insert your translation below. If no translation file for you language exists yet, you can start from scratch, using this empty translations file. Simply copy it and name it xx.json, replacing "xx" with the appropriate lowercase country code.

Word Lists

Word lists are used to generate random passphrases from a list of commonly used words from a given language. You can find all existing word lists here.