Adding Ollama Support

This commit is contained in:
Lucas Bock
2024-10-12 18:44:23 -05:00
parent 1bed63a4af
commit 6e25780b25
53 changed files with 2260 additions and 1079 deletions

View File

@ -38,7 +38,7 @@ msgstr "<0>Jag byggde Reactive Resume mestadels själv på min fritid, med mycke
msgid "<0>I'm sure the app is not perfect, but I'd like for it to be.</0><1>If you faced any issues while creating your resume, or have an idea that would help you and other users in creating your resume more easily, drop an issue on the repository or send me an email about it.</1>"
msgstr "<0>Jag är säker på att appen inte är perfekt, men jag vill att den ska vara det.</0> <1>Om du stötte på några problem när du skapade ditt CV, eller har en idé som skulle hjälpa dig och andra användare att skapa ditt CV enklare, släpp ett problem på repo:t eller skicka ett e-postmeddelande till mig om det.</1>"
#: apps/client/src/pages/dashboard/settings/_sections/openai.tsx:126
#: apps/client/src/pages/dashboard/settings/_sections/openai.tsx:205
msgid "<0>Note: </0>By utilizing the OpenAI API, you acknowledge and accept the <1>terms of use</1> and <2>privacy policy</2> outlined by OpenAI. Please note that Reactive Resume bears no responsibility for any improper or unauthorized utilization of the service, and any resulting repercussions or liabilities solely rest on the user."
msgstr "<0>Obs! </0>Genom att använda OpenAI API:et, godkänner och accepterar du <1>användarvillkoren</1> och <2>integritetspolicyn</2> som beskrivs av OpenAI. Observera att Reactive Resume inte bär något ansvar för felaktigt eller obehörigt utnyttjande av tjänsten, och eventuella återverkningar eller ansvar vilar enbart på användaren."
@ -146,10 +146,6 @@ msgstr "Alla som har länken kan se och ladda ner CV:t."
msgid "Anyone with this link can view and download the resume. Share it on your profile or with recruiters."
msgstr "Alla som har den här länken kan se och ladda ner CV:t. Dela det på din profil eller med rekryterare."
#: apps/client/src/pages/dashboard/settings/_sections/openai.tsx:83
msgid "API Key"
msgstr "API-nyckel"
#: apps/client/src/pages/builder/sidebars/left/sections/shared/section-dialog.tsx:124
msgid "Are you sure you want to delete this item?"
msgstr "Är du säker på att du vill ta bort detta objekt?"
@ -209,6 +205,10 @@ msgstr "Reservkod"
msgid "Backup Codes may contain only lowercase letters or numbers, and must be exactly 10 characters."
msgstr "Säkerhetskopieringskoder får endast innehålla små bokstäver eller siffror och måste bestå av exakt 10 tecken."
#: apps/client/src/pages/dashboard/settings/_sections/openai.tsx:133
msgid "Base URL"
msgstr ""
#: apps/client/src/pages/builder/sidebars/left/index.tsx:55
msgctxt "The basics section of a resume consists of User's Picture, Full Name, Location etc."
msgid "Basics"
@ -575,7 +575,7 @@ msgstr "Typsnittsvarianter"
msgid "For example, information regarding which companies you sent this resume to or the links to the job descriptions can be noted down here."
msgstr "Exempelvis kan information om vilka företag du skickat detta CV till eller länkarna till jobbeskrivningarna noteras här."
#: apps/client/src/pages/dashboard/settings/_sections/openai.tsx:107
#: apps/client/src/pages/dashboard/settings/_sections/openai.tsx:186
msgid "Forget"
msgstr "Glöm"
@ -914,10 +914,18 @@ msgstr "mars 2023 - nutid"
msgid "Margin"
msgstr "Marginal"
#: apps/client/src/pages/dashboard/settings/_sections/openai.tsx:159
msgid "Max Tokens"
msgstr ""
#: apps/client/src/pages/home/sections/features/index.tsx:48
msgid "MIT License"
msgstr "MIT-licens"
#: apps/client/src/pages/dashboard/settings/_sections/openai.tsx:146
msgid "Model"
msgstr ""
#: apps/client/src/pages/auth/register/page.tsx:98
#: apps/client/src/pages/builder/sidebars/left/dialogs/custom-section.tsx:58
#: apps/client/src/pages/builder/sidebars/left/dialogs/interests.tsx:48
@ -961,6 +969,10 @@ msgstr "Obs! Detta kommer att göra ditt konto mindre säkert."
msgid "Notes"
msgstr "Anteckningar"
#: apps/client/src/pages/dashboard/settings/_sections/openai.tsx:101
msgid "Ollama Integration"
msgstr ""
#: apps/client/src/pages/auth/verify-otp/page.tsx:82
msgid "One-Time Password"
msgstr "Engångslösenord"
@ -982,13 +994,17 @@ msgstr "Öppna"
msgid "Open Source"
msgstr "Öppen källkod"
#: apps/client/src/services/openai/change-tone.ts:30
#: apps/client/src/services/openai/fix-grammar.ts:28
#: apps/client/src/services/openai/improve-writing.ts:28
#: apps/client/src/pages/dashboard/settings/_sections/openai.tsx:120
msgid "OpenAI / Ollama API Key"
msgstr ""
#: apps/client/src/services/openai/change-tone.ts:34
#: apps/client/src/services/openai/fix-grammar.ts:32
#: apps/client/src/services/openai/improve-writing.ts:32
msgid "OpenAI did not return any choices for your text."
msgstr "OpenAI returnerade inga val för din text."
#: apps/client/src/pages/dashboard/settings/_sections/openai.tsx:52
#: apps/client/src/pages/dashboard/settings/_sections/openai.tsx:77
#: apps/client/src/pages/home/sections/features/index.tsx:52
msgid "OpenAI Integration"
msgstr "OpenAI-integration"
@ -1213,6 +1229,14 @@ msgstr "Avrundad"
msgid "Save Changes"
msgstr "Spara ändringar"
#: apps/client/src/pages/dashboard/settings/_sections/openai.tsx:180
msgid "Save Locally"
msgstr ""
#: apps/client/src/pages/dashboard/settings/_sections/openai.tsx:180
msgid "Saved"
msgstr ""
#: apps/client/src/pages/dashboard/settings/_dialogs/two-factor.tsx:168
msgid "Scan the QR code below with your authenticator app to setup 2FA on your account."
msgstr "Skanna QR-koden nedan med din autentiseringsapp för att ställa in 2FA på ditt konto."
@ -1376,18 +1400,10 @@ msgstr "Statistik"
msgid "Statistics are available only for public resumes."
msgstr "Statistik är endast tillgänglig för offentliga CV."
#: apps/client/src/pages/dashboard/settings/_sections/openai.tsx:101
msgid "Store Locally"
msgstr "Lagra lokalt"
#: apps/client/src/pages/dashboard/settings/_dialogs/two-factor.tsx:162
msgid "Store your backup codes securely"
msgstr "Lagra dina reservkoder säkert"
#: apps/client/src/pages/dashboard/settings/_sections/openai.tsx:101
msgid "Stored"
msgstr "Lagrad"
#: apps/client/src/pages/builder/sidebars/left/dialogs/awards.tsx:101
#: apps/client/src/pages/builder/sidebars/left/dialogs/certifications.tsx:95
#: apps/client/src/pages/builder/sidebars/left/dialogs/custom-section.tsx:128
@ -1433,10 +1449,14 @@ msgstr "Vittnesmål"
msgid "Text Color"
msgstr "Textfärg"
#: apps/client/src/pages/dashboard/settings/_sections/openai.tsx:25
#: apps/client/src/pages/dashboard/settings/_sections/openai.tsx:26
msgid "That doesn't look like a valid OpenAI API key."
msgstr "Det ser inte ut som en giltig OpenAI API-nyckel."
#: apps/client/src/pages/dashboard/settings/_sections/openai.tsx:30
msgid "That doesn't look like a valid URL"
msgstr ""
#: apps/client/src/pages/dashboard/settings/_sections/security.tsx:34
msgid "The passwords you entered do not match."
msgstr "Lösenorden du angav stämmer inte överens."
@ -1660,7 +1680,11 @@ msgstr "Du kan lägga till flera nyckelord genom att separera dem med ett kommat
msgid "You can also enter your username."
msgstr "Du kan också ange ditt användarnamn."
#: apps/client/src/pages/dashboard/settings/_sections/openai.tsx:54
#: apps/client/src/pages/dashboard/settings/_sections/openai.tsx:105
msgid "You can integrate with Ollama simply by setting the API key to `sk-1234567890abcdef` and the Base URL to your Ollama URL, i.e. `http://localhost:11434/v1`. You can also pick and choose models and set the max tokens."
msgstr ""
#: apps/client/src/pages/dashboard/settings/_sections/openai.tsx:79
msgid "You can make use of the OpenAI API to help you generate content, or improve your writing while composing your resume."
msgstr "Du kan använda OpenAI API:et för att hjälpa dig att skapa innehåll eller förbättra ditt skrivande medan du skriver ditt CV."
@ -1668,7 +1692,7 @@ msgstr "Du kan använda OpenAI API:et för att hjälpa dig att skapa innehåll e
msgid "You can track the number of views your resume has received, or how many people have downloaded the resume by enabling public sharing."
msgstr "Du kan spåra antalet visningar ditt CV har fått, eller hur många personer som har laddat ner CV:t genom att aktivera offentlig delning."
#: apps/client/src/pages/dashboard/settings/_sections/openai.tsx:60
#: apps/client/src/pages/dashboard/settings/_sections/openai.tsx:85
msgid "You have the option to <0>obtain your own OpenAI API key</0>. This key empowers you to leverage the API as you see fit. Alternatively, if you wish to disable the AI features in Reactive Resume altogether, you can simply remove the key from your settings."
msgstr "Du har möjlighet att <0>skaffa din egen OpenAI API-nyckel</0>. Den här nyckeln ger dig möjlighet att utnyttja API:et som du vill. Alternativt, om du vill inaktivera AI-funktionerna i Reactive Resume helt och hållet, kan du helt enkelt ta bort nyckeln från dina inställningar."
@ -1685,7 +1709,7 @@ msgstr "Du har fått mail!"
msgid "Your account and all your data has been deleted successfully. Goodbye!"
msgstr "Ditt konto och alla dina uppgifter har tagits bort. Hej då!"
#: apps/client/src/pages/dashboard/settings/_sections/openai.tsx:116
#: apps/client/src/pages/dashboard/settings/_sections/openai.tsx:195
msgid "Your API key is securely stored in the browser's local storage and is only utilized when making requests to OpenAI via their official SDK. Rest assured that your key is not transmitted to any external server except when interacting with OpenAI's services."
msgstr "Din API-nyckel lagras säkert i webbläsarens lokala lagring och används endast när du gör förfrågningar till OpenAI via deras officiella SDK. Du kan vara säker på att din nyckel inte överförs till någon extern server förutom när du interagerar med OpenAI:s tjänster."
@ -1708,4 +1732,3 @@ msgstr "Zooma in"
#: apps/client/src/pages/builder/_components/toolbar.tsx:100
msgid "Zoom Out"
msgstr "Zooma ut"