Skip to content

Commit f026949

Browse files
author
Matt Rothenberg
committed
feat: expose language configuration option
1 parent 6945c76 commit f026949

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

resources/js/components/address-field.vue

+1
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ export default {
102102
query: search,
103103
limit: 10,
104104
autocomplete: true,
105+
language: vm.config.language,
105106
countries: vm.config.countries,
106107
types: vm.config.featureTypes,
107108
})

src/Fieldtypes/Address.php

+7
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@ protected function configFieldItems(): array
4141
'display' => __('Countries'),
4242
'instructions' => __('Change the countries to search in. Two letters country codes (ISO 3166-1 alpha-2).'),
4343
'width' => 50,
44+
],
45+
'language' => [
46+
'type' => 'taggable',
47+
'display' => __('Language'),
48+
'instructions' => __('Specify the language to use for response text and, for forward geocoding, query result weighting. Options are IETF language tags comprised of a mandatory ISO 639-1 language code and optionally one or more IETF subtags for country or script.'),
49+
'width' => 50,
50+
'default' => 'en'
4451
]
4552
];
4653
}

0 commit comments

Comments
 (0)