Skip to content

Commit

Permalink
Added es-ES (#1989)
Browse files Browse the repository at this point in the history
* 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 <ed.burnette@hiddenmind.ai>
  • Loading branch information
eburnette and eburnette committed Dec 7, 2023
1 parent 15a6b19 commit 60f1f71
Show file tree
Hide file tree
Showing 13 changed files with 1,349 additions and 816 deletions.
14 changes: 14 additions & 0 deletions docker-compose/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
### docker-compose Deployment Tutorial
-Put the packaged front-end files in the `nginx/html` directory
- ```shell
# start up
docker-compose up -d
```
- ```shell
# Check the running status
docker ps
```
- ```shell
# end run
docker-compose down
```
28 changes: 14 additions & 14 deletions docker-compose/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,35 +3,35 @@ version: '3'
services:
app:
container_name: chatgpt-web
image: chenzhaoyu94/chatgpt-web # 总是使用latest,更新时重新pull该tag镜像即可
image: chenzhaoyu94/chatgpt-web # Always use latest, just pull the tag image again when updating
ports:
- 3002:3002
environment:
# 二选一
# pick one of two
OPENAI_API_KEY:
# 二选一
# pick one of two
OPENAI_ACCESS_TOKEN:
# API接口地址,可选,设置 OPENAI_API_KEY 时可用
# API interface address, optional, available when OPENAI_API_KEY is set
OPENAI_API_BASE_URL:
# API模型,可选,设置 OPENAI_API_KEY 时可用
# API model, optional, available when OPENAI_API_KEY is set
OPENAI_API_MODEL:
# 反向代理,可选
# reverse proxy, optional
API_REVERSE_PROXY:
# 访问权限密钥,可选
# Access permission key, optional
AUTH_SECRET_KEY:
# 每小时最大请求次数,可选,默认无限
# The maximum number of requests per hour, optional, default unlimited
MAX_REQUEST_PER_HOUR: 0
# 超时,单位毫秒,可选
# timeout in milliseconds, optional
TIMEOUT_MS: 60000
# Socks代理,可选,和 SOCKS_PROXY_PORT 一起时生效
# Socks proxy, optional, works with SOCKS_PROXY_PORT
SOCKS_PROXY_HOST:
# Socks代理端口,可选,和 SOCKS_PROXY_HOST 一起时生效
# Socks proxy port, optional, effective when combined with SOCKS_PROXY_HOST
SOCKS_PROXY_PORT:
# Socks代理用户名,可选,和 SOCKS_PROXY_HOST & SOCKS_PROXY_PORT 一起时生效
# Socks proxy username, optional, effective when combined with SOCKS_PROXY_HOST & SOCKS_PROXY_PORT
SOCKS_PROXY_USERNAME:
# Socks代理密码,可选,和 SOCKS_PROXY_HOST & SOCKS_PROXY_PORT 一起时生效
# Socks proxy password, optional, effective when combined with SOCKS_PROXY_HOST & SOCKS_PROXY_PORT
SOCKS_PROXY_PASSWORD:
# HTTPS_PROXY 代理,可选
# HTTPS_PROXY proxy, optional
HTTPS_PROXY:
nginx:
container_name: nginx
Expand Down
4 changes: 2 additions & 2 deletions docker-compose/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ server {
charset utf-8;
error_page 500 502 503 504 /50x.html;

# 防止爬虫抓取
# Prevent crawlers from crawling
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")
{
return 403;
Expand All @@ -16,7 +16,7 @@ server {
}

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

Expand Down
14 changes: 0 additions & 14 deletions docker-compose/readme.md

This file was deleted.

2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="zh-cmn-Hans">
<html>
<head>
<meta charset="UTF-8">
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"markdown-it-link-attributes": "^4.0.1",
"npm-run-all": "^4.1.5",
"postcss": "^8.4.21",
"rimraf": "^4.2.0",
"rimraf": "^4.3.0",
"tailwindcss": "^3.2.7",
"typescript": "~4.9.5",
"vite": "^4.2.0",
Expand Down
Loading

0 comments on commit 60f1f71

Please sign in to comment.