mirror of
https://github.com/l10n-dev/obsidian-plugin-ai-translator.git
synced 2026-07-22 06:56:27 +00:00
Update plugin ID and version; enhance translation settings and documentation
This commit is contained in:
parent
484d2aa154
commit
a57de58621
8 changed files with 20 additions and 13 deletions
|
|
@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
|
|||
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [1.0.2] — 2026-05-12
|
||||
|
||||
- Changed ID in manifest to fix "An entry with this ID already exists."
|
||||
|
||||
## [1.0.1] — 2026-05-02
|
||||
|
||||
### Fixed
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ This produces `main.js` in the repository root.
|
|||
|
||||
1. Locate your vault folder. Inside it, open (or create) the directory:
|
||||
```
|
||||
<YourVault>/.obsidian/plugins/ai-translator/
|
||||
<YourVault>/.obsidian/plugins/l10n-ai-translator/
|
||||
```
|
||||
2. Copy the following files from the repository root into that folder:
|
||||
- `main.js`
|
||||
|
|
@ -38,7 +38,7 @@ This produces `main.js` in the repository root.
|
|||
5. If prompted, select **Turn on community plugins**.
|
||||
6. Find **L10n.dev - AI Translator** in the list and toggle it on.
|
||||
|
||||
> **Tip:** Clone the repository directly into `<YourVault>/.obsidian/plugins/ai-translator/` and run `npm run dev` for live reloading during development.
|
||||
> **Tip:** Clone the repository directly into `<YourVault>/.obsidian/plugins/l10n-ai-translator/` and run `npm run dev` for live reloading during development.
|
||||
|
||||
---
|
||||
|
||||
|
|
@ -83,7 +83,7 @@ This produces `main.js` in the repository root.
|
|||
## 6. Mobile testing
|
||||
|
||||
1. Build `main.js` on desktop (`npm run build`).
|
||||
2. Transfer `main.js`, `manifest.json`, and `styles.css` to your vault's `.obsidian/plugins/ai-translator/` folder using a sync solution (e.g. iCloud, Obsidian Sync, or manual file transfer).
|
||||
2. Transfer `main.js`, `manifest.json`, and `styles.css` to your vault's `.obsidian/plugins/l10n-ai-translator/` folder using a sync solution (e.g. iCloud, Obsidian Sync, or manual file transfer).
|
||||
3. Open Obsidian on the mobile device and enable the plugin as described in step 2.
|
||||
4. Repeat the manual test checklist on mobile, paying attention to the language picker and context menu behaviour.
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"id": "ai-translator",
|
||||
"id": "l10n-ai-translator",
|
||||
"name": "L10n.dev - AI Translator",
|
||||
"version": "1.0.1",
|
||||
"version": "1.0.2",
|
||||
"minAppVersion": "0.15.0",
|
||||
"description": "Translate notes into any of 165 languages with AI. Preserves Markdown formatting and structure. Powered by L10n.dev's AI translation API.",
|
||||
"author": "l10n.dev",
|
||||
|
|
|
|||
10
package-lock.json
generated
10
package-lock.json
generated
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "obsidian-plugin-ai-translator",
|
||||
"version": "1.0.1",
|
||||
"version": "1.0.2",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "obsidian-plugin-ai-translator",
|
||||
"version": "1.0.1",
|
||||
"version": "1.0.2",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"obsidian": "latest"
|
||||
|
|
@ -2607,9 +2607,9 @@
|
|||
"license": "MIT"
|
||||
},
|
||||
"node_modules/fast-uri": {
|
||||
"version": "3.1.0",
|
||||
"resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.0.tgz",
|
||||
"integrity": "sha512-iPeeDKJSWf4IEOasVVrknXpaBV0IApz/gp7S2bb7Z4Lljbl2MGJRqInZiUrQwV16cpzw/D3S5j5Julj/gT52AA==",
|
||||
"version": "3.1.2",
|
||||
"resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.2.tgz",
|
||||
"integrity": "sha512-rVjf7ArG3LTk+FS6Yw81V1DLuZl1bRbNrev6Tmd/9RaroeeRRJhAt7jg/6YFxbvAQXUCavSoZhPPj6oOx+5KjQ==",
|
||||
"dev": true,
|
||||
"funding": [
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "obsidian-plugin-ai-translator",
|
||||
"version": "1.0.1",
|
||||
"version": "1.0.2",
|
||||
"description": "Obsidian plugin to translate notes with AI using l10n.dev",
|
||||
"main": "main.js",
|
||||
"type": "module",
|
||||
|
|
|
|||
|
|
@ -46,8 +46,9 @@ async function doTranslate(
|
|||
{
|
||||
sourceStrings: sourceText,
|
||||
targetLanguageCode: lang.code,
|
||||
format: "txt",
|
||||
format: "md",
|
||||
useContractions: true,
|
||||
translateMetadata: plugin.settings.translateFrontmatter,
|
||||
},
|
||||
);
|
||||
translated = result.translations;
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ export interface TranslateRequest {
|
|||
targetLanguageCode: string;
|
||||
format?: string;
|
||||
useContractions?: boolean;
|
||||
translateMetadata?: boolean;
|
||||
}
|
||||
|
||||
export interface TranslateResponse {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"1.0.0": "0.15.0",
|
||||
"1.0.1": "0.15.0"
|
||||
"1.0.1": "0.15.0",
|
||||
"1.0.2": "0.15.0"
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue