Proxies just for certain languages?

Hi,

I want to use my templates with the localization feature and I’d like to have some dynamic / proxies pages, too. Can I set the proxies up, so that they will just be used for certain languages and not for all of them? And how would I do that?

Thank you in advance!

I figured it out now :smile: I wanted to use a template in different languages (i called it markets) and each market needed to have subfolders with different names, but the same content. So here is what I came up with:

de = ["a", "b"]
en = ["a", "c"]
markets = {"de" => de, "en" => en}

markets.each do |market, subfolders|

    subfolders.each do |subfolder|
	proxy "#{market}/#{subfolder}/index.html", "/localizable/index.html", :lang => :"#{market}"
    end

end

Which will create the following file structure:

  • de
  • a/index.html
  • b/index.html
  • en
  • a/index.html
  • c/index.html