You could check if Firefox is installed while installing the language packs. Pseudo code:
If Firefox = Installed Then sudo apt-get install firefox-locale-* Else (firefox isn't installed, so do nothing) EndIf
You could check if Firefox is installed while installing the language packs. Pseudo code:
If Firefox = Installed Then
sudo apt-get install firefox-locale-*
Else
(firefox isn't installed, so do nothing)
EndIf