How to create an installer with language selection screen

I have created installers for Mac OS applications using productbuild and pkgbuild. I want to be able to select languages when installing applications. Could you tell me how to add a language selection setting screen?