mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 13:04:23 +00:00
Basic translations?
This commit is contained in:
parent
7314a5fa8a
commit
61a7ecbf12
4 changed files with 17 additions and 2 deletions
|
@ -37,6 +37,9 @@ function cleanUpSlug(orgslug: string) {
|
|||
}
|
||||
|
||||
export default defineEventHandler(async (event) => {
|
||||
const translateQuery = getQuery(event).translate;
|
||||
const translate = translateQuery === "true" ? true : false;
|
||||
console.log(translate);
|
||||
const slug = getRouterParam(event, "slug");
|
||||
const cleanSlug = cleanUpSlug(slug);
|
||||
if (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue