I have one model (category.rb) in my rails application configured as below:
id,name,locale
1,Sociability,en
2,Prudence and Delicacy,en
3,社會性,zh-TW
4,"謹慎性,細膩性",zh-TW
I would like to know the initial ID for different locale, for example, the initial ID for :en will be "1" and ID for :"zh-TW" will be "3". Instead of hard-coded to define the initial ID in application, is there any gem or method to identify the initial ID? So that in future, when I add new record as 5, Sociabilidad, es, I can get the ID correctly without hard-coded?
Please advise. Thank you.