-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcreate_i18n.sh
executable file
·33 lines (30 loc) · 1.7 KB
/
create_i18n.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
# Define languages
langs=("ko" "zh" "ja")
# Define the file structure
files=(
"docs/i18n/LANG/docusaurus-plugin-content-docs/current/general-info/bridge/bridging-testnet.md"
"docs/i18n/LANG/docusaurus-plugin-content-docs/current/general-info/contract-addresses/testnet-contracts.md"
"docs/i18n/LANG/docusaurus-plugin-content-docs/current/general-info/contract-addresses/tokens.md"
"docs/i18n/LANG/docusaurus-plugin-content-docs/current/add-status-network.md"
"docs/i18n/LANG/docusaurus-plugin-content-docs/current/network-details.md"
"docs/i18n/LANG/docusaurus-plugin-content-docs/current/introduction/quick-start.md"
"docs/i18n/LANG/docusaurus-plugin-content-docs/current/other/official-links.md"
"docs/i18n/LANG/docusaurus-plugin-content-docs/current/tokenomics/karma-token.md"
"docs/i18n/LANG/docusaurus-plugin-content-docs/current/tokenomics/snt-token.md"
"docs/i18n/LANG/docusaurus-plugin-content-docs/current/tools/block-explorers.md"
"docs/i18n/LANG/docusaurus-plugin-content-docs/current/tools/bridge.md"
"docs/i18n/LANG/docusaurus-plugin-content-docs/current/tools/rpc.md"
"docs/i18n/LANG/docusaurus-plugin-content-docs/current/tools/testnet-faucets.md"
"docs/i18n/LANG/docusaurus-plugin-content-docs/current/tutorials/deploying-contracts/using-foundry.md"
"docs/i18n/LANG/docusaurus-plugin-content-docs/current/tutorials/deploying-contracts/using-hardhat.md"
"docs/i18n/LANG/docusaurus-plugin-content-docs/current/tutorials/deploying-contracts/using-remix.md"
"docs/i18n/LANG/docusaurus-plugin-content-docs/current/index.md"
)
for lang in "${langs[@]}"; do
for file in "${files[@]}"; do
path=${file/LANG/$lang}
mkdir -p "$(dirname "$path")"
touch "$path"
done
done