Skip to content

Commit 60f1f71

Browse files
authored
Added es-ES (Chanzhaoyu#1989)
* Additional English translations Provide an English version of the readme, and add a few translations that were missing elsewhere * Use browser language by default * Support 'en' and 'vi' as languages * Fixed: Browserslist: caniuse-lite is outdated. Full message was: Browserslist: caniuse-lite is outdated. Please run: npx update-browserslist-db@latest Why you should do it regularly: https://github.com/browserslist/update-db#readme * Added es-ES These changes were originally from https://github.com/rasta26/chatgpt-web although I did tweak the translations a bit. --------- Co-authored-by: Ed Burnette <[email protected]>
1 parent 15a6b19 commit 60f1f71

File tree

13 files changed

+1349
-816
lines changed

13 files changed

+1349
-816
lines changed

docker-compose/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
### docker-compose Deployment Tutorial
2+
-Put the packaged front-end files in the `nginx/html` directory
3+
- ```shell
4+
# start up
5+
docker-compose up -d
6+
```
7+
- ```shell
8+
# Check the running status
9+
docker ps
10+
```
11+
- ```shell
12+
# end run
13+
docker-compose down
14+
```

docker-compose/docker-compose.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,35 +3,35 @@ version: '3'
33
services:
44
app:
55
container_name: chatgpt-web
6-
image: chenzhaoyu94/chatgpt-web # 总是使用latest,更新时重新pull该tag镜像即可
6+
image: chenzhaoyu94/chatgpt-web # Always use latest, just pull the tag image again when updating
77
ports:
88
- 3002:3002
99
environment:
10-
# 二选一
10+
# pick one of two
1111
OPENAI_API_KEY:
12-
# 二选一
12+
# pick one of two
1313
OPENAI_ACCESS_TOKEN:
14-
# API接口地址,可选,设置 OPENAI_API_KEY 时可用
14+
# API interface address, optional, available when OPENAI_API_KEY is set
1515
OPENAI_API_BASE_URL:
16-
# API模型,可选,设置 OPENAI_API_KEY 时可用
16+
# API model, optional, available when OPENAI_API_KEY is set
1717
OPENAI_API_MODEL:
18-
# 反向代理,可选
18+
# reverse proxy, optional
1919
API_REVERSE_PROXY:
20-
# 访问权限密钥,可选
20+
# Access permission key, optional
2121
AUTH_SECRET_KEY:
22-
# 每小时最大请求次数,可选,默认无限
22+
# The maximum number of requests per hour, optional, default unlimited
2323
MAX_REQUEST_PER_HOUR: 0
24-
# 超时,单位毫秒,可选
24+
# timeout in milliseconds, optional
2525
TIMEOUT_MS: 60000
26-
# Socks代理,可选,和 SOCKS_PROXY_PORT 一起时生效
26+
# Socks proxy, optional, works with SOCKS_PROXY_PORT
2727
SOCKS_PROXY_HOST:
28-
# Socks代理端口,可选,和 SOCKS_PROXY_HOST 一起时生效
28+
# Socks proxy port, optional, effective when combined with SOCKS_PROXY_HOST
2929
SOCKS_PROXY_PORT:
30-
# Socks代理用户名,可选,和 SOCKS_PROXY_HOST & SOCKS_PROXY_PORT 一起时生效
30+
# Socks proxy username, optional, effective when combined with SOCKS_PROXY_HOST & SOCKS_PROXY_PORT
3131
SOCKS_PROXY_USERNAME:
32-
# Socks代理密码,可选,和 SOCKS_PROXY_HOST & SOCKS_PROXY_PORT 一起时生效
32+
# Socks proxy password, optional, effective when combined with SOCKS_PROXY_HOST & SOCKS_PROXY_PORT
3333
SOCKS_PROXY_PASSWORD:
34-
# HTTPS_PROXY 代理,可选
34+
# HTTPS_PROXY proxy, optional
3535
HTTPS_PROXY:
3636
nginx:
3737
container_name: nginx

docker-compose/nginx/nginx.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ server {
44
charset utf-8;
55
error_page 500 502 503 504 /50x.html;
66

7-
# 防止爬虫抓取
7+
# Prevent crawlers from crawling
88
if ($http_user_agent ~* "360Spider|JikeSpider|Spider|spider|bot|Bot|2345Explorer|curl|wget|webZIP|qihoobot|Baiduspider|Googlebot|Googlebot-Mobile|Googlebot-Image|Mediapartners-Google|Adsbot-Google|Feedfetcher-Google|Yahoo! Slurp|Yahoo! Slurp China|YoudaoBot|Sosospider|Sogou spider|Sogou web spider|MSNBot|ia_archiver|Tomato Bot|NSPlayer|bingbot")
99
{
1010
return 403;
@@ -16,7 +16,7 @@ server {
1616
}
1717

1818
location /api {
19-
proxy_set_header X-Real-IP $remote_addr; #转发用户IP
19+
proxy_set_header X-Real-IP $remote_addr; #Forward user IP
2020
proxy_pass http://app:3002;
2121
}
2222

docker-compose/readme.md

Lines changed: 0 additions & 14 deletions
This file was deleted.

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html lang="zh-cmn-Hans">
2+
<html>
33
<head>
44
<meta charset="UTF-8">
55
<link rel="icon" type="image/svg+xml" href="/favicon.svg">

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"markdown-it-link-attributes": "^4.0.1",
5757
"npm-run-all": "^4.1.5",
5858
"postcss": "^8.4.21",
59-
"rimraf": "^4.2.0",
59+
"rimraf": "^4.3.0",
6060
"tailwindcss": "^3.2.7",
6161
"typescript": "~4.9.5",
6262
"vite": "^4.2.0",

0 commit comments

Comments
 (0)