MS Teams 2.x - How to force specific language for ...
# _general
a
MS Teams 2.x - How to force specific language for all users ?
j
In old Teams you could faff with the JSON file to force a specific language but I don't know if this works in the new version
a
Yes ai know - for 2.x ot seems to be completely new way.. 🫣 šŸ¤·šŸ»ā€ā™‚ļø
a
Make sure your image is configured for the correct target locale before installing Teams, and Teams will pick up the right locale
This assumes that your image is configured correctly before users start Teams for the first time
j
So it would have to be an image-level setting? Jesus wept
d
Could be the entry ā€œlanguageā€:ā€œde-DEā€ in the app_settings.json file located in %localappdata%\Packages\MSTeams_8wekyb3d8bbwe\LocalCache\Microsoft\MSTeams\ You can use a powershell script or WEM JSON action to edit the file like this:
# Register MS Teams AppX Package for user
Add-AppPackage -Register -DisableDevelopmentMode "$ENV:TeamsVersionPath\AppXManifest.xml" -EA SilentlyContinue
# Define the json file location
$TeamsConfig = "$ENV:LocalAPPDATA\Packages\MSTeams_8wekyb3d8bbwe\LocalCache\Microsoft\MSTeams\app_settings.json"
# Make a backup of the json file
Copy-Item -Path $TeamsConfig -Destination "$TeamsConfig.bak" -Force
# Read the content
$jsonContent = Get-Content -Path $TeamsConfig -Raw
# Replace the values
$jsonContent = $jsonContent -replace '"open_app_in_background":true', '"open_app_in_background":false'
$jsonContent = $jsonContent -replace '"keep_app_running_on_close":true', '"keep_app_running_on_close":false'
# Save the modified json file
Set-Content -Path $TeamsConfig -Value $jsonContent -Force