Skip to content

Commit

Permalink
Updated steam store descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphiiko committed Jun 19, 2024
1 parent d545d3e commit dcf9148
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 16 deletions.
4 changes: 2 additions & 2 deletions docs/readmes/generated/STEAM_STORE_CN.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/readmes/generated/STEAM_STORE_EN.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/readmes/generated/STEAM_STORE_ID.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/readmes/generated/STEAM_STORE_JA.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/readmes/generated/STEAM_STORE_KO.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/readmes/generated/STEAM_STORE_RU.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/readmes/generated/STEAM_STORE_TW.json

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions docs/readmes/src/steam_description_template.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@

{{POWER_AUTOMATIONS_BODY_BASE_STATIONS}}

[h2]{{DEVICE_CONTROL_HEADER}}[/h2]
{{DEVICE_CONTROL_BODY}}

[h2]{{GPU_AUTOMATIONS_HEADER}}[/h2]
{{GPU_AUTOMATIONS_BODY_POWER_LIMITING}}

Expand All @@ -28,6 +31,10 @@

{{VRCHAT_AUTOMATIONS_BODY_STATUS_AUTOMATIONS}}

{{VRCHAT_AUTOMATIONS_JOIN_NOTIFICATIONS}}

{{VRCHAT_AUTOMATIONS_AVATAR_AUTOMATIONS}}

{{VRCHAT_AUTOMATIONS_OSC_AUTOMATIONS}}

[h2]{{SHUTDOWN_SEQUENCE_HEADER}}[/h2]
Expand Down Expand Up @@ -60,6 +67,10 @@
[h2]{{CHAPERONE_AUTOMATIONS_HEADER}}[/h2]
{{CHAPERONE_AUTOMATIONS_BODY}}

[h2]{{MQTT_CONTROL_HEADER}}[/h2]
{{MQTT_CONTROL_BODY}}
{{MQTT_CONTROL_FEATURES}}

[h2]{{TRANSLATION_AND_LOCALIZATION_HEADER}}[/h2]
{{TRANSLATION_AND_LOCALIZATION_BODY}}

Expand Down
8 changes: 5 additions & 3 deletions scripts/readme-generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ function generateSteamStoreDescriptions(langData) {
.replaceAll(/\*\*(.+)\*\*/g, '[b]$1[/b]')
.replaceAll(/_(.+)_/g, '[i]$1[/i]')
.replaceAll('<MARKDOWN-BR>', ' ')
.replaceAll('<br>', '\n')
.replaceAll(/<br\s*\/?>/g, '\n')
.replaceAll('<ul>', '[list]')
.replaceAll('</ul>', '[/list]')
.replaceAll(/\s*<li>\s*/g, '\n[*]')
Expand All @@ -227,13 +227,15 @@ function generateSteamStoreDescriptions(langData) {
.replaceAll('</b>', '[/b]')
.replaceAll('<i>', '[i]')
.replaceAll('</i>', '[/i]')
.replaceAll(/(\r\n|\r|\n){3,}/g, '\n\n')
.replaceAll('\r', '');
.replaceAll(/\n*<\/?(table|tr|td)(\s+colspan="[0-9]+")?>\n*/g, '')
.replaceAll('\r', '')
.replaceAll(/(\r\n|\r|\n){1,}\s+(\r\n|\r|\n){1,}/g, '\n');
localizedDescription = localizedDescription.replaceAll(key, sanitizedValue);
});
Object.entries(tokens).forEach(([key, value]) => {
localizedDescription = localizedDescription.replaceAll(`{{token.${key}}}`, value);
});
if (lang === 'en') console.log(localizedDescription);
localizedDescription = localizedDescription.replaceAll(
'{{TRANSLATION_CONTRIBUTORS_LIST}}',
getTranslationContributors('steam')
Expand Down

0 comments on commit dcf9148

Please sign in to comment.