polyglot icon indicating copy to clipboard operation
polyglot copied to clipboard

Assets folder is copied to another language folders.

Open tkosaka1976 opened this issue 4 months ago • 0 comments

When we use polyglot, if you set as "exclude_from_localizations: ["assets"]", but the asset folder also copy in the folder for another language. (I'm setting "ja" as main lang and "en" as sub)

/assets

/js /css /img

/en

/assets

 /js
 /css
 /img

I noticed that the href tag code is not change to language specific (/assets/img/xxx.png) but files and folders always copied to the under the "en" folder. The folder can be removed before the deployment but its more convenient where no copy. In addition, robots.txt and sitemap.xml also copy to the under the "en" folder. It also convenient if there no copy. Could you tell me, if there are another way to do this? Probably there are no plug-in that can remove specific folders and files after the build.

tkosaka1976 avatar Oct 11 '24 22:10 tkosaka1976