diff --git a/packages/i18nify-go/modules/country_subdivisions/country_subdivisions.go b/packages/i18nify-go/modules/country_subdivisions/country_subdivisions.go index e510abce..b7346549 100644 --- a/packages/i18nify-go/modules/country_subdivisions/country_subdivisions.go +++ b/packages/i18nify-go/modules/country_subdivisions/country_subdivisions.go @@ -14,7 +14,6 @@ import ( "golang.org/x/exp/maps" "os" "path/filepath" - "runtime" ) // DataFile is the directory where JSON files containing country subdivision data are stored. " @@ -96,14 +95,8 @@ func (r *CountrySubdivisions) GetAllStates() []string { // GetCountrySubdivisions retrieves subdivision information for a specific country code. func GetCountrySubdivisions(code string) CountrySubdivisions { // Read JSON data file containing country subdivision information. - _, currentFileName, _, ok := runtime.Caller(0) pincodeDetailsMap := make(map[string]PincodeValue) - - if !ok { - fmt.Println("Error getting current file directory") - return CountrySubdivisions{} - } - subDivJsonData, err := os.ReadFile(filepath.Join(filepath.Dir(currentFileName), code+".json")) + subDivJsonData, err := os.ReadFile(filepath.Join("./", code+".json")) if err != nil { fmt.Println("Error reading JSON file:", err) return CountrySubdivisions{}