Skip to content

Commit

Permalink
Merge pull request #183 from eclipse-sw360/heliocastro/i18n
Browse files Browse the repository at this point in the history
Add new libre translate based translations
  • Loading branch information
heliocastro authored Dec 8, 2023
2 parents 0c2898f + c624e90 commit d1f7451
Show file tree
Hide file tree
Showing 14 changed files with 3,642 additions and 565 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ yarn.lock
pnpm-lock.yaml

# vscode
.vscode
#.vscode

# Aria
.hintrc
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"i18n-ally.localesPaths": ["messages"],
"i18n-ally.keystyle": "nested"
"i18n-ally.keystyle": "nested",
"i18n-ally.sortKeys": true,
"i18n-ally.translate.engines": ["libretranslate"],
"i18n-ally.translate.libre.apiRoot": "http://127.0.0.1:5555/"
}
38 changes: 20 additions & 18 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ Please read our code [Code of Conduct](./CODE_OF_CONDUCT.md) before to help with
To get an overview of the project, read the [README](./README.md).

This project uses [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) specification to commit messages and [Apache Skywalking](https://github.com/apache/skywalking-eyes) for check the license headers.
Translations can be verified and executed in automated way using [Libre Translate project](https://libretranslate.com/)

### Setting up

It is recommended for easy development start usage of VSCode and Docker. A developer container setup is included and the entire setup is done after the devcontainer build.

If you intend to do in a local environment by yourself, the base requirements are pretty baseic, NodeJS LTS version and an editor of your choice. Then run:

```bash
> npm install
```
Expand Down Expand Up @@ -46,7 +48,7 @@ http://localhost:3000

Every file need to have the conformant license headers. To do that:

* Add this on the header of your source
- Add this on the header of your source

```typescript
// Copyright (C) SW360 Frontend Authors (see <https://github.com/eclipse-sw360/sw360-frontend/blob/main/NOTICE>)
Expand All @@ -55,7 +57,7 @@ Every file need to have the conformant license headers. To do that:
// License-Filename: LICENSE
```

* Add your copyright on thr NOTICE file
- Add your copyright on thr NOTICE file

If you want to check your code before push to CI is possible with docker. Just execute this command from the root of the projects:

Expand All @@ -71,27 +73,27 @@ Commit header should follow convetional commits format, with type(info): message

Example:

```fix(project): Broken something and fixed```
`fix(project): Broken something and fixed`

Types allowed for this project commit:

* **build** - For buildsystem related commits
* **chore** - For small commit tasks
* **ci** - For CI related commits
* **docs** - For documentation related tasks
* **feat** - For new features commits
* **fix** - For code fix commits
* **perf** - Performance related commits
* **refactor** - For refactoring related commits
* **revert** - For revert commits
* **style** - For layout and styling commits
* **test** - For test related commits
- **build** - For buildsystem related commits
- **chore** - For small commit tasks
- **ci** - For CI related commits
- **docs** - For documentation related tasks
- **feat** - For new features commits
- **fix** - For code fix commits
- **perf** - Performance related commits
- **refactor** - For refactoring related commits
- **revert** - For revert commits
- **style** - For layout and styling commits
- **test** - For test related commits

Any other header will be caught on CI, and build will fail.

## Project Rules

* You shall never try to commit package managers lock file.
* You shall never try to commit image files except as SVG.
* You shall use NPM. Yarn and pnpm are as good, but we need deal with one only. You can use on your dev environment, but the default reference for testing is npm.
* You shall NEVER remove the copytright lines from NOTICE unless you are the owner
- You shall never try to commit package managers lock file.
- You shall never try to commit image files except as SVG.
- You shall use NPM. Yarn and pnpm are as good, but we need deal with one only. You can use on your dev environment, but the default reference for testing is npm.
- You shall NEVER remove the copytright lines from NOTICE unless you are the owner
765 changes: 765 additions & 0 deletions messages/de.json

Large diffs are not rendered by default.

Loading

0 comments on commit d1f7451

Please sign in to comment.