i18n.site

Results 39 comments of i18n.site

![CleanShot 2024-11-10 at 18 51 39](https://github.com/user-attachments/assets/475b0a77-e089-41d7-b8ce-260b8add8788) I create a modify version for readable https://github.com/i18n-ops/ops/blob/main/ansible/callback_plugins/custom.py

![CleanShot 2024-11-13 at 15 10 28](https://github.com/user-attachments/assets/b3409664-a53d-4c0d-a203-121b45aa4b40) fixed , I use charset='utf8' for mysql connection , fix is return bytes in python3

@grooverdan can merge this into main branch ?

@Neilpang 测试成功了, 能不能合并下 https://github.com/i18nsite/acme.sh/actions/runs/10589701617 ![CleanShot 2024-08-30 at 14 49 34](https://github.com/user-attachments/assets/763d896e-185a-4c29-8946-47331c058ff3)

我一套代码,我想国内用这个,国外用jsdriver 我不止引用一个包,我会引用一系列文件 比如xxx/[email protected]/zh.js 这样的语言文件有几百个会按需动态加载 我的前端组件会打包出去给第三方用,所以语言文件版本号我会写死在组件里,这样防止造成版本问题 。 而对方引用组件不需要写版本号,这样可以在线更新。 我一般会让这么写 { "imports": { "xxx/": "//unpkg.com/@xxx/" } } 后缀不统一就没法用了。 ---- 具体的代码: https://atomgit.com/i18n/plugin/blob/dev/lang/src/onI18n.js ```js import bintxt from "x/bintxt.js" import langHook from "x/langHook.js" import {...

https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/script/type/importmap#%E6%98%A0%E5%B0%84%E8%B7%AF%E5%BE%84%E5%89%8D%E7%BC%80 模块标识符映射键也可用于重新映射模块标识符中的路径前缀。请注意,在这种情况下,属性和映射路径都必须有一个尾随的正斜杠(/)。 { "imports": { "shapes/": "./module/shapes/", "othershapes/": "https://example.com/modules/shapes/" } } 然后我们可以这样导入 circle 模块。 是有这种格式。

我写的网站上线了 https://i18n.site/blog 在server worker中负载均衡到多个后端的代码 https://github.com/i18n-site/18x/blob/c45387449e3832ef510a8e53d5b45d3119626423/serviceWorker/serviceWorker.js#L71 ``` # - cdn.jsdmirror.cn/npm # - unpkg.com # - jsd.onmicrosoft.cn/npm # - fastly.jsdelivr.net/npm # - cdn.jsdelivr.net/npm # - jsd.cdn.noisework.cn/npm # - quantil.jsdelivr.net/npm ``` ![CleanShot 2024-10-17...

路径格式风格能否和unpkg保持一致,也就是版本用@而不是/ , 不要files/ 比如 https://unpkg.com/[email protected]/S.js 或者 https://unpkg.com/18x/S.js 如果担心路径冲突,可以考虑加一个前缀,比如类似 https://cdn.jsdelivr.net/npm/[email protected]/fBintxt.js **增加这种路径风格的支持,不影响原来路径的访问** 也方便大家切换importmap的域名以及在serviceWorker中做高可用 因为 importmap 可以只配置组织前缀,比如 ```json { "i/":"//unpkg.com/@8n/" } ``` 然后引用js, 比如 i/site/S.js 会映射到 @8n/site/S.js 而现在,而现在因为 registry.npmmirror.com 路径后缀不一致,导致不太方便切换

能给一个训练语料的语言代码-数据占比吗? 我在做一个翻译工具:https://i18n.site/i18/LANG_CODE ,想用rwkv看看翻译效果