Skip to content

Commit 9d0cc62

Browse files
committed
v0.5.8
1 parent d71bb85 commit 9d0cc62

File tree

13 files changed

+46
-40
lines changed

13 files changed

+46
-40
lines changed

index.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -293,30 +293,30 @@
293293
const translations = [
294294
{
295295
head: "日本語で Webflow を体験しましょう!",
296-
desc: "Kumaflow は Webflow のダッシュボードとデザイナー UI を日本語、繁体字・簡体字中国語、韓国語、フランス語、タイ語に翻訳します。"
296+
desc: "Kumaflow は Webflow のダッシュボードとデザイナー UI を日本語、繁/簡体字中国語、韓国語、フランス語、タイ語に翻訳します。"
297297
},
298298
{
299299
head: "用中文体验 Webflow!",
300-
desc: "Kumaflow 现已支持将 Webflow 仪表板和设计器界面翻译为日语、繁体与简体中文、韩语、法语和泰语。"
300+
desc: "Kumaflow 能将 Webflow 仪表板和设计器界面翻译为日语、繁体与简体中文、韩语、法语和泰语。"
301301
},
302302
{
303303
head: "用中文體驗 Webflow!",
304-
desc: "Kumaflow 現在支援將 Webflow 儀表板和設計器介面翻譯為日語、繁體與簡體中文、韓語、法語和泰語。"
304+
desc: "Kumaflow 能將 Webflow 儀表板和設計器介面翻譯為日語、繁體與簡體中文、韓語、法語和泰語。"
305305
},
306306
{
307307
head: "한국어로 Webflow를 경험하세요!",
308-
desc: "Kumaflow는 이제 Webflow 대시보드와 디자이너 UI를 일본어, 중국어(번체 및 간체), 한국어, 프랑스어, 태국어로 번역합니다."
308+
desc: "Kumaflow는 Webflow 대시보드와 디자이너 UI를 일본어, 중국어(번체 및 간체), 한국어, 프랑스어, 태국어로 번역합니다."
309309
},
310310
{
311311
head: "Découvrez Webflow en français !",
312-
desc: "Kumaflow traduit désormais l'interface du tableau de bord et du concepteur Webflow en japonais, chinois traditionnel et simplifié, coréen, français et thaï."
312+
desc: "Kumaflow traduit l'interface du tableau de bord et du concepteur Webflow en japonais, chinois traditionnel et simplifié, coréen, français et thaï."
313313
},
314314
{
315315
head: "สัมผัสประสบการณ์ Webflow ในภาษาไทย!",
316-
desc: "ตอนนี้ Kumaflow แปลหน้า Dashboard และ Designer ของ Webflow เป็นภาษาญี่ปุ่น จีน (ตัวเต็มและตัวย่อ) เกาหลี ฝรั่งเศส และไทย"
316+
desc: "Kumaflow แปลหน้า Dashboard และ Designer ของ Webflow เป็นภาษาญี่ปุ่น จีน (ตัวเต็มและตัวย่อ) เกาหลี ฝรั่งเศส และไทย"
317317
}
318318
];
319-
let currentIndex = 0;
319+
let currentIndex = -1;
320320
const introText = document.getElementById('intro-text');
321321
function rotateText() {
322322
introText.classList.add('fade-out');

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://json.schemastore.org/chrome-manifest.json",
33
"manifest_version": 3,
4-
"version": "0.5.7",
4+
"version": "0.5.8",
55
"default_locale": "en",
66
"name": "__MSG_appName__",
77
"description": "__MSG_appDescription__",

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"private": true,
33
"name": "webflow-ui-localization",
44
"description": "Translate the Webflow Dashboard and Designer UI into Japanese, Chinese, Korean, and more!",
5-
"version": "0.5.7",
5+
"version": "0.5.8",
66
"license": "MIT",
77
"type": "module",
88
"author": {

src/_new_lang_checklist.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ To add a new language code (e.g. "fr"), update these files:
1010
- `src/content/injections.ts`: Add new language options.
1111
- `.github/scripts/pull-poeditor.mjs`: Add 'fr' to the list for pulling from POEditor.
1212
- `_locales/fr/messages.json`: Create extension metadata (name/description) for Chrome Web Store.
13+
- `verify_json.mjs`: Add to the list of json files to verify.
1314

1415
Content updates:
1516

src/constants.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,22 @@
1+
/**
2+
* Key used for caching fetched locale data in local storage.
3+
*/
14
export const LOCALE_CACHE_KEY = 'cdnLocaleCache_v1'
5+
6+
/**
7+
* List of CSS selectors to exclude from translation.
8+
* Any text node inside an element matching these selectors (or the element itself) will be skipped.
9+
*/
10+
export const EXCLUDED_SELECTORS = [
11+
// Examples:
12+
// '#apple-pie', // ID example
13+
// '.top-bar', // Class example
14+
// '[data-pop="wow"]', // Attribute example
15+
// 'nav.top', // Tag + Class example (excludes <nav class="top"> but not <div class="top">)
16+
// There are parts in Webflow, especially in the Designer, that should not be translated.
17+
// Default selectors here:
18+
'div.bem-SearchResultPreview',
19+
'[data-automation-id="page-list-row-wrapper"] div.bem-List_Cell',
20+
'[data-palette="CMSListItem"]',
21+
'[data-palette="CMSItemsListPanelTitle"]'
22+
];

src/content/exclusion-selectors.ts

Lines changed: 0 additions & 21 deletions
This file was deleted.

src/content/scripts.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ import th from '../locales/th.json'
1515
import fr from '../locales/fr.json'
1616
import { injectDashboardFooter } from './injections'
1717
import type { LanguageCode, Dictionary } from '../types'
18-
import { LOCALE_CACHE_KEY } from '../constants'
19-
import { EXCLUDED_SELECTORS } from './exclusion-selectors'
18+
import { LOCALE_CACHE_KEY, EXCLUDED_SELECTORS } from '../constants'
19+
// import { EXCLUDED_SELECTORS } from './exclusion-selectors' // Removed
20+
2021

2122
// ---------------------------------------------------------------------------
2223
// TYPES

src/locales/_ref/_no_translate.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ If these words are in the middle of a sentence, KEEP them as they are in ENGLISH
3636
- Grid
3737
- Flex
3838
- Gap
39+
- Alt / alt (img's alt attribute)
3940

4041
Special rules - Japanese:
4142

src/options/OptionsApp.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// It manages user settings and provides manual controls for clearing cache.
66

77
import type { LanguageCode, Dictionary } from '../types'
8-
import { LOCALE_CACHE_KEY } from '../constants'
8+
import { LOCALE_CACHE_KEY, EXCLUDED_SELECTORS } from '../constants'
99

1010
// Extension UI Translations
1111
import extJa from '../locales-extension/ja.json'
@@ -14,7 +14,8 @@ import extZhCn from '../locales-extension/zh-CN.json'
1414
import extKo from '../locales-extension/ko.json'
1515
import extTh from '../locales-extension/th.json'
1616
import extFr from '../locales-extension/fr.json'
17-
import { EXCLUDED_SELECTORS } from '../content/exclusion-selectors'
17+
// import { EXCLUDED_SELECTORS } from '../content/exclusion-selectors' // Removed
18+
1819

1920
// ---------------------------------------------------------------------------
2021
// TYPES

0 commit comments

Comments
 (0)