@zachhandley/ez-i18n 0.1.7 → 0.1.8

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.
package/dist/index.js CHANGED
@@ -268,7 +268,7 @@ function vitePlugin(config) {
268
268
  localeBaseDir: localeBaseDirs[locale]
269
269
  };
270
270
  if (isDev && config.translations) {
271
- const localeConfig = typeof config.translations === "string" ? path2.join(config.translations, locale) : config.translations[locale];
271
+ const localeConfig = typeof config.translations === "string" ? path2.join(config.translations, locale) + "/" : config.translations[locale];
272
272
  if (localeConfig && typeof localeConfig === "string") {
273
273
  const pathType = detectPathType(localeConfig);
274
274
  if (pathType === "folder" || pathType === "glob") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zachhandley/ez-i18n",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -154,7 +154,7 @@ export function vitePlugin(config: EzI18nConfig): Plugin {
154
154
  // For dev mode, determine if we can use import.meta.glob
155
155
  if (isDev && config.translations) {
156
156
  const localeConfig = typeof config.translations === 'string'
157
- ? path.join(config.translations, locale)
157
+ ? path.join(config.translations, locale) + '/' // Trailing slash ensures detectPathType returns 'folder'
158
158
  : config.translations[locale];
159
159
 
160
160
  if (localeConfig && typeof localeConfig === 'string') {