Get Current store locale/language programmatically in Magento 2.

Magento 2 with multi-store functionality, Different store view contains different locale.

You can set Different locale from admin panel using Stores -> Configuration -> General Tab.
Click on Locale Options,

Get store code value from current store programmatically in Magento 2.

You can get the current store’s, store code value in Magento 2.

You need to use Magento\Store\Model\StoreManagerInterface interface for fetching current store locale.

I have given a demo using Block Class,

Create Customer Address Programmatically in Magento 2.

You can create Customer address using Programmatically for any existing customer in Magento.

For Create Customer address, you must have a customer created in Magento store. Based on existing customer id, We can create customer address programmatically.