A script cannot modify the environment of the parent process; you need to somehow invoke your command in the context of the invoking shell.
Some tools require you to invoke them with something like eval `nameoftool` and so the tool itself would simply print something like LANG=value; export LANG and leave it to the invoking user to actually do something useful with this output.