checking if there are localized references

before showing flags