Skip to content

Commit

Permalink
Fix docs colors
Browse files Browse the repository at this point in the history
  • Loading branch information
Patbox committed Nov 10, 2023
1 parent c72b4cc commit a451e88
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 11 deletions.
7 changes: 1 addition & 6 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,12 @@ are represented on server the same as normal (vanilla/modded) ones allowing for

It is also should be fully compatible with close to all other mods and in case of found issues they are patched as soon as possible.

## Updating from 0.2.x
With Minecraft 1.19.3 being globally breaking update. I took this as a good time to make breaking changes to polymer itself.

[See this update guide for more informations!](other/updating-0.2.x-to-0.3)

## Modules

### Polymer Core
`eu.pb4:polymer-core`

It's a heart of Polymer. It allows you to create server side content. It also contains lots of extra mod compatibility for client mods,
It's the heart of Polymer. It allows you to create server side content. It also contains lots of extra mod compatibility for client mods,
to make your mod better fit for any modpack.

* [Getting Started](polymer-core/getting-started)
Expand Down
23 changes: 18 additions & 5 deletions docs/other/server-translation-api.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Server Translation API
It's a library for handling translations server side. It supports
It's a library for handling translations server side. It supports
per player language, by using one provided by client on join/language change.

## Adding as dependency:
Expand All @@ -10,6 +10,19 @@ repositories {
maven { url 'https://maven.nucleoid.xyz' }
}
dependencies {
modImplementation include("xyz.nucleoid:server-translations-api:[TAG]")
}
```

For `[TAG]`/translations api version I recommend you checking [this maven](https://maven.nucleoid.xyz/xyz/nucleoid/server-translations-api/).

### For versions before 1.19.4:
```groovy
repositories {
maven { url 'https://maven.nucleoid.xyz' }
}
dependencies {
modImplementation include("fr.catcore:server-translations-api:[TAG]")
}
Expand All @@ -18,10 +31,10 @@ dependencies {
For `[TAG]`/translations api version I recommend you checking [this maven](https://maven.nucleoid.xyz/fr/catcore/server-translations-api/).

## Usage
To use i, you just need to use vanilla `TranslationText` with key specified by you in your code.
To use it, you just need to use vanilla `Text.translation(...)` with key specified by you in your code.

Then you just need to create `data/modid/lang` folder in your mod resources.
Then you can create there `en_us.json` for default translation and other language files for other.
Then you just need to create `data/modid/lang` folder in your mod's resources.
Then you can create there `en_us.json` for default translation and similar files for other languages (same format as vanilla translations).

Example valid language file looks like this:
```
Expand All @@ -37,4 +50,4 @@ Example valid language file looks like this:
"item.honeytech.motor": "Motor",
"gui.honeytech.show_recipes": "Show Recipes"
}
```
```
2 changes: 2 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,14 @@ theme:

palette:
- scheme: slate
primary: custom
features:
- navigation.expand
toggle:
icon: material/weather-sunny
name: Switch to light mode
- scheme: default
primary: custom
features:
- navigation.expand
toggle:
Expand Down

0 comments on commit a451e88

Please sign in to comment.