vk fixes and new changelog system
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
{
|
||||
"ContentTitle": "ui revamp and usability imporvements (3.5)",
|
||||
"Content": "new features:\n- cobalt now lets you paste the link in your clipboard and download the file in a single press of a button. if your clipboard's latest content isn't a valid url, cobalt won't process or paste it. you can also hide the clipboard button in settings if you want to.\nunfortunately, the clipboard feature is not available to firefox users because mozilla didn't add proper support for clipboard api.\n\n- there's now a button to quickly clean the input area, right next to download button. it's really useful in case when you want to quickly save a bunch of videos and don't want to bother selecting text.\n\n- keyboard shortcuts! you love them, i love them, and now we can use them to perform quick actions in cobalt. use ctrl+v combo to paste the link without focusing the input area; press escape key to close the active popup or clean the input area; and if you didn't know, you can also press enter to download content from the link.\n\nnew looks:\n- main box has been revamped. it has lost its border, thick padding, and now feels light and fresh.\n\n- download button is now prettier, and has been tuned to make >> look just like the logo.\n\n- buttons on the bottom now actually look like buttons and are way more descriptive. no more #@+?$ bullshit. it's way easier to see and understand what each of them does.\n\n- bottom buttons are also prettier and easier to use on a phone. they're bigger and stretch out to sides, making them easier to press.\n\nfixes:\n- it's now impossible to overlap multiple popups at once. no more mess if you decide to explore popups while waiting for request to process.\n\n- popup tabs have been slightly moved down to prevent popup content overlapping.\n\n- ui scalability has been improved.",
|
||||
"FollowTwitter": "follow cobalt's twitter account for polls, updates, and more: <a class=\"text-backdrop\" href=\"https://twitter.com/justusecobalt\" target=\"_blank\">@justusecobalt</a>"
|
||||
}
|
||||
@@ -59,7 +59,7 @@
|
||||
"DonateSubtitle": "help me pay for hosting",
|
||||
"DonateDescription": "i don't really like crypto in its current state, but it's the only reliable way for me to receive money and pay for anything abroad.",
|
||||
"LinkGitHubIssues": ">> report issues and check out the source code on github",
|
||||
"LinkGitHubChanges": ">> see previous changes and contribute on github",
|
||||
"LinkGitHubChanges": ">> see previous commits and contribute on github",
|
||||
"LinkDonateContact": ">> let me know if currency you want to donate isn't listed",
|
||||
"NoScriptMessage": "{appName} uses javascript for api requests and interactive interface. you have to allow javascript to use this site. i don't have any ads or trackers, pinky promise.",
|
||||
"DownloadPopupDescriptionIOS": "because you have an ios device, you have to press and hold the download button and then select \"download video\" in appeared popup to save the video. this will be required for as long as apple forces safari webview upon all browser developers on ios.",
|
||||
@@ -75,7 +75,7 @@
|
||||
"SettingsAudioTab": "audio",
|
||||
"SettingsOtherTab": "other",
|
||||
"ChangelogLastCommit": "last commit",
|
||||
"ChangelogLastMajor": "last major update",
|
||||
"ChangelogLastMajor": "last update",
|
||||
"AccessibilityModeToggle": "toggle download mode",
|
||||
"DonateLinksDescription": "donation links open in a new tab. this is the best way to donate money, if you want me to receive it directly.",
|
||||
"SettingsAudioFormatBest": "best",
|
||||
@@ -98,6 +98,9 @@
|
||||
"ErrorNoUrlReturned": "server didn't return a download link. this should never happen. reload the page and try again, but if it doesn't help, {ContactLink}.",
|
||||
"ErrorUnknownStatus": "i received a response i can't process. most likely something with status is wrong. this should never happen. reload the page and try again, but if it doesn't help, {ContactLink}.",
|
||||
"PasteFromClipboard": "paste from clipboard",
|
||||
"SettingsDisableClipboard": "hide clipboard button"
|
||||
"SettingsDisableClipboard": "hide clipboard button",
|
||||
"FollowTwitter": "follow {appName}'s twitter account for polls, updates, and more: <a class=\"text-backdrop\" href=\"https://twitter.com/justusecobalt\" target=\"_blank\">@justusecobalt</a>",
|
||||
"ChangelogOlder": "previous updates",
|
||||
"ChangelogPressToExpand": "press to load"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -98,6 +98,9 @@
|
||||
"ErrorNoUrlReturned": "я не получил ссылку для скачивания от сервера. такого происходить не должно. перезагрузи страницу, а если не поможет, то {ContactLink}.",
|
||||
"ErrorUnknownStatus": "сервер ответил мне чем-то непонятным. такого происходить не должно. перезагрузи страницу, а если не поможет, то {ContactLink}.",
|
||||
"PasteFromClipboard": "вставить из буфера обмена",
|
||||
"SettingsDisableClipboard": "скрыть кнопку буфера обмена"
|
||||
"SettingsDisableClipboard": "скрыть кнопку буфера обмена",
|
||||
"FollowTwitter": "а ещё, в твиттере {appName} есть опросы, новости, и многое другое: <a class=\"text-backdrop\" href=\"https://twitter.com/justusecobalt\" target=\"_blank\">@justusecobalt</a>",
|
||||
"ChangelogOlder": "предыдущие обновления (на английском)",
|
||||
"ChangelogPressToExpand": "нажми, чтобы загрузить"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,7 +5,6 @@ import loadJson from "../modules/sub/loadJSON.js";
|
||||
const locPath = './src/localization/languages'
|
||||
|
||||
let loc = {}
|
||||
let changelog = loadJson('./src/localization/changelog.json')
|
||||
|
||||
export function loadLoc() {
|
||||
fs.readdir(locPath, (err, files) => {
|
||||
@@ -30,7 +29,6 @@ export function replaceAll(lang, str, string, replacement) {
|
||||
}
|
||||
export default function(lang, string, replacement) {
|
||||
try {
|
||||
if (lang === "changelog") return replaceBase(changelog[string]);
|
||||
if (!Object.keys(loc).includes(lang)) lang = 'en';
|
||||
let str = loc[lang]["strings"];
|
||||
if (str && str[string]) {
|
||||
|
||||
Reference in New Issue
Block a user