@yapyak/vite 0.0.9 → 0.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +2 -3
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -291,7 +291,6 @@ async function runAutoTranslate(state, input) {
291
291
  locales: input.locales,
292
292
  localesDir: config.localesDir
293
293
  }, state.projectRoot, {
294
- examples: config.examples,
295
294
  signal: input.signal,
296
295
  yapyakDir: state.yapyakDir
297
296
  });
@@ -535,7 +534,7 @@ function createDevServerPlugin(state) {
535
534
  const after = result.messages;
536
535
  if (areMessagesEqual(before, after)) return;
537
536
  const renames = detectRenames(before.flatMap(toCallSitePositions), after.flatMap(toCallSitePositions));
538
- if (renames.length > 0 && getNormalized(state).preserveTranslationsOnRename) {
537
+ if (renames.length > 0 && getNormalized(state).preserveTranslationsOnSourceEdit) {
539
538
  const migrationResult = migrateLocales({
540
539
  extractedKeys: toExtractedKeysForFile(fileId, after),
541
540
  fileId,
@@ -785,7 +784,7 @@ function createVirtualModulePlugin(state) {
785
784
  detectUserLocale: normalized.detectUserLocale,
786
785
  locales: emitted.locales,
787
786
  persistence: normalized.persistence,
788
- syncHtmlLang: normalized.syncHtmlLang
787
+ syncHtmlAttributes: normalized.syncHtmlAttributes
789
788
  });
790
789
  }
791
790
  return null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yapyak/vite",
3
- "version": "0.0.9",
3
+ "version": "0.0.11",
4
4
  "description": "Vite plugin for yapyak.",
5
5
  "keywords": [
6
6
  "i18n",
@@ -35,12 +35,12 @@
35
35
  "typescript": "6.0.3",
36
36
  "vite": "8.2.0",
37
37
  "vitest": "4.1.10",
38
- "@yapyak/typescript-config": "0.0.0",
39
- "@yapyak/tsdown-config": "0.0.0"
38
+ "@yapyak/tsdown-config": "0.0.0",
39
+ "@yapyak/typescript-config": "0.0.0"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "vite": ">=8",
43
- "yapyak": "0.0.9"
43
+ "yapyak": "0.0.11"
44
44
  },
45
45
  "engines": {
46
46
  "node": ">=22.22"