One best practice for implementing a multi-language website in PHP is to use a language detection library such as Text-Language-Detect.
Here is a list of all the locales and their corresponding short codes that are available in PHP.