var langs = /** @type {const} */ ([ 'en', 'zh-cn', ]) /** @type {StringDict>} */ var strings = { layout: { title: { en: 'NaiveBoom - Relatively Safe', 'zh-cn': 'NaiveBoom - 比较安全', }, info: { en: "Gosh! You disabled JavaScript, please enable.
Otherwise this site won't work.", 'zh-cn': '上帝啊! 您禁用了JavaScript,请开启它
如果您禁止使用JavaScript,将无法使用我们的服务!', }, guide: { en: "Find out how to enable JavaScript.", 'zh-cn': "查看如何启用JavaScript", }, homepage: { en: 'Home Page', 'zh-cn': '首页', }, }, error: { title: { en: 'NaiveBoom - Error', 'zh-cn': 'NaiveBoom - 出现错误', }, info: { en: 'An error occurred on this page.', 'zh-cn': '出现了一些情况,页面发生错误了。', }, }, index: { prompt: { en: "

Anonymous Single-View Message

" + '

Type or paste something in the editor below,' + '
then press Generate to get a short link.

' + '

Share this link with your friend, and they only get to open it once,' + '
when they close the page, the message will be gone forever!

', 'zh-cn': "

无需注册的阅后即焚

" + '

在下面的框框里输入或粘贴一些内容' + '
然后点一下「生成」按钮,你就会得到一个短的网址

' + '

将这个网址发给你的朋友,TA只能看一次' + '
关掉页面后,内容就会 永远消失

', }, shareprompt: { en: 'Share this message with this link:', 'zh-cn': '可以把这个网址分享给你的朋友:', }, generate: { en: 'Generate', 'zh-cn': '生成', }, info: { en: "
Naiveboom - Avoid naivetés" + " [1]

" + '

Want to share a message but have concerns with it being exposed to 3rd parties?

' + '

Just paste it here (Markdown syntax and attachments supported),' + '
then generate a single-use link that invalidates itself after opening.

' + '

Now at the very least you would know when things goes wrong.

', 'zh-cn': '
Naiveboom - 让Naive的事情不再发生

' + '

举例:你有一段较为私密的信息需要发送,不想被第三者看到

' + '

你可以将这段文字粘贴到这个页面(支持Markdown格式和附件)' + '
产生一个一次性链接,阅后即焚

' + '

这样如果出事的话,至少你们能知道(笑)

', }, '': { en: 'Close', 'zh-cn': '关闭', }, '': { en: 'Info', 'zh-cn': '提示', }, '': { en: 'Error', 'zh-cn': '错误', }, '': { en: '(None)', 'zh-cn': '(空)', }, '': { en: 'Loading...', 'zh-cn': '加载中...', }, '': { en: 'Failed to perform action:', 'zh-cn': '操作失败!', }, '': { en: 'Network error', 'zh-cn': '网络错误', }, '': { en: 'Unknown error', 'zh-cn': '未知错误', }, }, look: { info: { en: 'Uh oh 😯, the message is already gone...', 'zh-cn': '啊喔😯,你要查看的内容已经不见了...', }, tips: { en: '

This means it has already been opened once, and the message was deleted from server.

' + '

Get it? This link is single-use only!

', 'zh-cn': '

这是因为这个网址已经被看过一次了,被看过一次的内容就会自动消失

' + '

对,这就是人们常说的 阅后即焚!

', }, metoo: { en: 'I want to get a link too!', 'zh-cn': '我也要生成一个!', }, retrieving: { en: 'Retrieving message...', 'zh-cn': '正在获取...', }, } } /** * @template T * @typedef {{ [file: string]: { [key: string]: T } }} StringDict */ /** * @template T * @typedef {{ [k in typeof langs[number]]: T }} LangDict */ /** @type {LangDict>} */ var langStrings = {} langs.forEach(function (lang) { langStrings[lang] = {} Object.keys(strings).forEach(function(file) { langStrings[lang][file] = {} Object.keys(strings[file]).forEach(function(key) { langStrings[lang][file][key] = strings[file][key][lang]; }) }); }); module.exports = langStrings