On Friday 7 April 2018, media sources reported that India's defense ministry, home, law and labor ministries sites crashed or hacked by Chinese hackers.If you have worked with Drupal and see how that hacked site looked like, you might SMILE or get ANGRY.
The biggest reason you should be integrating AMP pages with Drupal websites is to rank better in google and display content faster on mobile devices. Here is the tutorial to explain how you can implement AMP pages with Drupal with just contributed modules.
One of the functionality provided by multilingual modules in Drupal 8 is to allow a user to add different plural forms to the string as per the language plural formula. But if you want to change it then here is the code snippet to update the plural formula for a language.
In Drupal 8 views strings like sort options, header, footer or any other string can only be translated through configuration translation but here is a code snippet to add translations for a view programmatically with config override.
Drupal 8 supports multilingual out of the box but importing translations becomes a nightmare sometimes so here is a programmatic solution to import translations with a script, which can be used with hook_install(), hook_update() or with any other custom interface as well.