Skip to content

Commit 051c56d

Browse files
committed
feat: minor changes.
1 parent 9085e3a commit 051c56d

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed

README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Data are sourced from files maintained at [this repository](https://github.com/B
66

77
## Usage
88

9-
This API currently supports **5 core languages** to keep the repository size manageable. To access information in a specific language, replace `{language}` in the URL with one of the supported language codes listed below.
9+
This API currently supports **2 languages**. To access information in a specific language, replace `{language}` in the URL with one of the supported language codes listed below.
1010

1111
```http
1212
GET https://raw.githubusercontent.com/ByMykel/CSGO-API/main/public/api/{language}
@@ -16,11 +16,8 @@ GET https://raw.githubusercontent.com/ByMykel/CSGO-API/main/public/api/{language
1616

1717
| Language Name | Language Code |
1818
| --------------------- | ------------- |
19-
| Portuguese (Brazil) | pt-BR |
2019
| English | en |
21-
| Russian | ru |
2220
| Chinese (Simplified) | zh-CN |
23-
| Spanish (Spain) | es-ES |
2421

2522
## Adding More Languages
2623

@@ -237,7 +234,7 @@ Example response:
237234
```js
238235
[
239236
{
240-
id: "sticker-slab-75",
237+
id: "sticker_slab-75",
241238
name: "Sticker Slab | Titan | Katowice 2014",
242239
description: "The sticker is safely sealed in this slab. You can return the sticker to your inventory at any time by cracking open and discarding this slab.<br><br>This charm can be attached to any weapon you own. Each attached charm can be detached by using a Charm Detachment. Detached charms will be returned to your inventory.",
243240
def_index: "75",

public/index.html

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -449,12 +449,9 @@ <h1 class="section-heading">Introduction</h1>
449449
<p
450450
class="mt-4 text-base md:text-lg text-slate-700 mb-4"
451451
>
452-
This API currently supports <strong>5 core languages</strong> to keep the repository size manageable. To access information in a specific language, replace <span>{language}</span> in the URL with one of the supported language codes:
453-
<span class="language-code">pt-BR</span>
452+
This API currently supports <strong>2 languages</strong>. To access information in a specific language, replace <span>{language}</span> in the URL with one of the supported language codes:
454453
<span class="language-code">en</span>
455-
<span class="language-code">ru</span>
456454
<span class="language-code">zh-CN</span>
457-
<span class="language-code">es-ES</span>
458455
</p>
459456

460457
<div class="mt-4 p-4 bg-blue-50 border border-blue-200 rounded-lg">
@@ -807,7 +804,7 @@ <h1 class="section-heading">List stickers slab</h1>
807804
>
808805
[
809806
{
810-
id: "sticker-slab-75",
807+
id: "sticker_slab-75",
811808
name: "Sticker Slab | Titan | Katowice 2014",
812809
description: "The sticker is safely sealed in this slab. You can return the sticker to your inventory at any time by cracking open and discarding this slab.<br><br>This charm can be attached to any weapon you own. Each attached charm can be detached by using a Charm Detachment. Detached charms will be returned to your inventory.",
813810
def_index: "75",

services/stickersSlab.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ const parseItem = item => {
153153
}
154154

155155
return {
156-
id: `sticker-slab-${item.object_id}`,
156+
id: `sticker_slab-${item.object_id}`,
157157
name: `${$t("keychain_kc_sticker_display_case")} | ${$t(item.item_name)}`,
158158
description: getDescription(),
159159
def_index: item.object_id,

0 commit comments

Comments
 (0)